referrerpolicy=no-referrer-when-downgrade

Function sc_consensus_grandpa::run_grandpa_voter

source ·
pub fn run_grandpa_voter<Block: BlockT, BE, C, N, S, SC, VR>(
    grandpa_params: GrandpaParams<Block, C, N, S, SC, VR>,
) -> Result<impl Future<Output = ()> + Send>
where BE: Backend<Block> + 'static, N: NetworkT<Block> + Sync + 'static, S: SyncingT<Block> + Sync + 'static, SC: SelectChain<Block> + 'static, VR: VotingRule<Block, C> + Clone + 'static, NumberFor<Block>: BlockNumberOps, C: ClientForGrandpa<Block, BE> + 'static, C::Api: GrandpaApi<Block>,
Expand description

Run a GRANDPA voter as a task. Provide configuration and a link to a block import worker that has already been instantiated with block_import.