referrerpolicy=no-referrer-when-downgrade

Function block_import

Source
pub fn block_import<Client, Block: BlockT, I, CIDP, SC>(
    config: BabeConfiguration,
    wrapped_block_import: I,
    client: Arc<Client>,
    create_inherent_data_providers: CIDP,
    select_chain: SC,
    offchain_tx_pool_factory: OffchainTransactionPoolFactory<Block>,
) -> Result<(BabeBlockImport<Block, Client, I, CIDP, SC>, BabeLink<Block>)>
where Client: AuxStore + HeaderBackend<Block> + HeaderMetadata<Block, Error = Error> + PreCommitActions<Block> + 'static,
Expand description

Produce a BABE block-import object to be used later on in the construction of an import-queue.

Also returns a link object used to correctly instantiate the import queue and background worker.