Trait sc_consensus_nakamoto::BitcoinBlockImport

source ·
pub trait BitcoinBlockImport:
    Send
    + Sync
    + 'static {
    // Required method
    fn import_block<'life0, 'async_trait>(
        &'life0 mut self,
        block: BitcoinBlock,
        origin: BlockOrigin,
    ) -> Pin<Box<dyn Future<Output = Result<ImportStatus, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait for importing Bitcoin blocks.

Required Methods§

source

fn import_block<'life0, 'async_trait>( &'life0 mut self, block: BitcoinBlock, origin: BlockOrigin, ) -> Pin<Box<dyn Future<Output = Result<ImportStatus, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Import a Bitcoin block.

Implementors§

source§

impl<Block, Client, BE, BI, TransactionAdapter> BitcoinBlockImport for BitcoinBlockImporter<Block, Client, BE, BI, TransactionAdapter>
where Block: BlockT, BE: Backend<Block> + Send + Sync + 'static, Client: HeaderBackend<Block> + BlockBackend<Block> + StorageProvider<Block, BE> + AuxStore + ProvideRuntimeApi<Block> + CallApiAt<Block> + Send + 'static, Client::Api: Core<Block> + SubcoinApi<Block>, BI: BlockImport<Block> + Send + Sync + 'static, TransactionAdapter: BitcoinTransactionAdapter<Block> + Send + Sync + 'static,