Function sc_consensus_grandpa::block_import

source ยท
pub fn block_import<BE, Block: BlockT, Client, SC>(
    client: Arc<Client>,
    genesis_authorities_provider: &dyn GenesisAuthoritySetProvider<Block>,
    select_chain: SC,
    telemetry: Option<TelemetryHandle>,
) -> Result<(GrandpaBlockImport<BE, Block, Client, SC>, LinkHalf<Block, Client, SC>), Error>
where SC: SelectChain<Block>, BE: Backend<Block> + 'static, Client: ClientForGrandpa<Block, BE> + 'static,
Expand description

Make block importer and link half necessary to tie the background voter to it.