Function sc_consensus_aura::build_aura_worker
source · pub fn build_aura_worker<P, B, C, PF, I, SO, L, BS, Error>(
_: BuildAuraWorkerParams<C, I, PF, SO, L, BS, NumberFor<B>>
) -> impl SimpleSlotWorker<B, Proposer = PF::Proposer, BlockImport = I, SyncOracle = SO, JustificationSyncLink = L, Claim = P::Public, AuxData = Vec<<P as Pair>::Public>>where
B: BlockT,
C: ProvideRuntimeApi<B> + BlockOf + AuxStore + HeaderBackend<B> + Send + Sync,
C::Api: AuraApi<B, <P as Pair>::Public>,
PF: Environment<B, Error = Error> + Send + Sync + 'static,
PF::Proposer: Proposer<B, Error = Error>,
P: Pair,
P::Public: AppPublic + Member,
P::Signature: TryFrom<Vec<u8>> + Member + Codec,
I: BlockImport<B> + Send + Sync + 'static,
Error: Error + Send + From<ConsensusError> + 'static,
SO: SyncOracle + Send + Sync + Clone,
L: JustificationSyncLink<B>,
BS: BackoffAuthoringBlocksStrategy<NumberFor<B>> + Send + Sync + 'static,
Expand description
Build the aura worker.
The caller is responsible for running this worker, otherwise it will do nothing.