Function sc_finality_grandpa::run_grandpa_voter
source · pub fn run_grandpa_voter<Block: BlockT, BE, C, N, SC, VR>(
grandpa_params: GrandpaParams<Block, C, N, SC, VR>
) -> Result<impl Future<Output = ()> + Send>where
Block::Hash: Ord,
BE: Backend<Block> + 'static,
N: NetworkT<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
.