Function centrifuge_chain::service::start_consensus
source · fn start_consensus<RuntimeApi>(
client: Arc<TFullClient<Block, RuntimeApi, WasmExecutor<SubstrateHostFunctions>>>,
block_import: ParachainBlockImport<Block, Arc<TFullClient<Block, RuntimeApi, WasmExecutor<SubstrateHostFunctions>>>, TFullBackend<Block>>,
prometheus_registry: Option<&Registry>,
telemetry: Option<TelemetryHandle>,
task_manager: &TaskManager,
relay_chain_interface: Arc<dyn RelayChainInterface>,
transaction_pool: Arc<FullPool<Block, TFullClient<Block, RuntimeApi, WasmExecutor<SubstrateHostFunctions>>>>,
sync_oracle: Arc<SyncingService<Block>>,
keystore: KeystorePtr,
relay_chain_slot_duration: Duration,
para_id: ParaId,
collator_key: CollatorPair,
overseer_handle: OverseerHandle,
announce_block: Arc<dyn Fn(Hash, Option<Vec<u8>>) + Send + Sync>
) -> Result<(), Error>where
RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, WasmExecutor<SubstrateHostFunctions>>> + Send + Sync + 'static,
RuntimeApi::RuntimeApi: RuntimeApiCollection,
Expand description
Starts the aura consensus.
NOTE: Taken from Polkadot SDK because Moonbeam uses their custom Nimbus consensus