Function beefy_gadget::beefy_block_import_and_links
source · pub fn beefy_block_import_and_links<B, BE, RuntimeApi, I>(
wrapped_block_import: I,
backend: Arc<BE>,
runtime: Arc<RuntimeApi>
) -> (BeefyBlockImport<B, BE, RuntimeApi, I>, BeefyVoterLinks<B>, BeefyRPCLinks<B>)where
B: Block,
BE: Backend<B>,
I: BlockImport<B, Error = ConsensusError, Transaction = TransactionFor<RuntimeApi, B>> + Send + Sync,
RuntimeApi: ProvideRuntimeApi<B> + Send + Sync,
RuntimeApi::Api: BeefyApi<B>,
Expand description
Make block importer and link half necessary to tie the background voter to it.