Function sc_consensus_aura::build_aura_worker[][src]

pub fn build_aura_worker<P, B, C, PF, I, SO, L, BS, Error>(
    _: BuildAuraWorkerParams<C, I, PF, SO, L, BS>
) -> impl SlotWorker<B, <PF::Proposer as Proposer<B>>::Proof> where
    B: BlockT,
    C: ProvideRuntimeApi<B> + BlockOf + ProvideCache<B> + 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, Transaction = TransactionFor<C, B>>,
    P: Pair + Send + Sync,
    P::Public: AppPublic + Hash + Member + Encode + Decode,
    P::Signature: TryFrom<Vec<u8>> + Hash + Member + Encode + Decode,
    I: BlockImport<B, Transaction = TransactionFor<C, B>> + Send + Sync + 'static,
    Error: Error + Send + From<Error> + 'static,
    SO: SyncOracle + Send + Sync + Clone,
    L: JustificationSyncLink<B>,
    BS: BackoffAuthoringBlocksStrategy<NumberFor<B>> + Send + 'static, 
Expand description

Build the aura worker.

The caller is responsible for running this worker, otherwise it will do nothing.