referrerpolicy=no-referrer-when-downgrade

Function sc_consensus_babe::block_import

source ·
pub fn block_import<Client, Block: BlockT, I>(
    config: BabeConfiguration,
    wrapped_block_import: I,
    client: Arc<Client>,
) -> Result<(BabeBlockImport<Block, Client, I>, 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.