Type Definition sc_consensus::import_queue::BoxBlockImport [−][src]
type BoxBlockImport<B, Transaction> = Box<dyn BlockImport<B, Error = ConsensusError, Transaction = Transaction> + Send + Sync>;
Expand description
Shared block import struct used by the queue.
Trait Implementations
impl<B: BlockT, Transaction> BlockImport<B> for BoxBlockImport<B, Transaction> where
Transaction: Send + 'static,
impl<B: BlockT, Transaction> BlockImport<B> for BoxBlockImport<B, Transaction> where
Transaction: Send + 'static,
fn check_block<'life0, 'async_trait>(
&'life0 mut self,
block: BlockCheckParams<B>
) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn check_block<'life0, 'async_trait>(
&'life0 mut self,
block: BlockCheckParams<B>
) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Check block preconditions.
fn import_block<'life0, 'async_trait>(
&'life0 mut self,
block: BlockImportParams<B, Transaction>,
cache: HashMap<CacheKeyId, Vec<u8>>
) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn import_block<'life0, 'async_trait>(
&'life0 mut self,
block: BlockImportParams<B, Transaction>,
cache: HashMap<CacheKeyId, Vec<u8>>
) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Import a block.
Cached data can be accessed through the blockchain cache.
type Transaction = Transaction
type Transaction = Transaction
The transaction type used by the backend.