pub trait BlockImport<B>where
    B: Block,
{ type Error: 'static + Error + Send; type Transaction: 'static + Send; fn check_block<'life0, 'async_trait>(
        &'life0 mut self,
        block: BlockCheckParams<B>
    ) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn import_block<'life0, 'async_trait>(
        &'life0 mut self,
        block: BlockImportParams<B, Self::Transaction>,
        cache: HashMap<[u8; 4], Vec<u8, Global>, RandomState>
    ) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Block import trait.

Required Associated Types§

The error type.

The transaction type used by the backend.

Required Methods§

Check block preconditions.

Import a block.

Cached data can be accessed through the blockchain cache.

Trait Implementations§

Check block preconditions.

Import a block.

Cached data can be accessed through the blockchain cache.

The error type.
The transaction type used by the backend.

Implementations on Foreign Types§

Check block preconditions.

Import a block.

Cached data can be accessed through the blockchain cache.

Implementors§