Function sc_consensus_babe::start_babe
source · [−]pub fn start_babe<B, C, SC, E, I, SO, CAW, BS, Error>(
_: BabeParams<B, C, E, I, SO, SC, CAW, BS>
) -> Result<BabeWorker<B>, Error> where
B: BlockT,
C: ProvideRuntimeApi<B> + ProvideCache<B> + ProvideUncles<B> + BlockchainEvents<B> + HeaderBackend<B> + HeaderMetadata<B, Error = ClientError> + Send + Sync + 'static,
C::Api: BabeApi<B>,
SC: SelectChain<B> + 'static,
E: Environment<B, Error = Error> + Send + Sync + 'static,
E::Proposer: Proposer<B, Error = Error, Transaction = TransactionFor<C, B>>,
I: BlockImport<B, Error = ConsensusError, Transaction = TransactionFor<C, B>> + Send + Sync + 'static,
Error: Error + Send + From<ConsensusError> + From<I::Error> + 'static,
SO: SyncOracle + Send + Sync + Clone + 'static,
CAW: CanAuthorWith<B> + Send + 'static,
BS: BackoffAuthoringBlocksStrategy<NumberFor<B>> + Send + 'static,
Expand description
Start the babe worker.