referrerpolicy=no-referrer-when-downgrade

Function sc_service::spawn_tasks

source ·
pub fn spawn_tasks<TBl, TBackend, TExPool, TRpc, TCl>(
    params: SpawnTasksParams<'_, TBl, TCl, TExPool, TRpc, TBackend>,
) -> Result<RpcHandlers, Error>
where TCl: ProvideRuntimeApi<TBl> + HeaderMetadata<TBl, Error = Error> + Chain<TBl> + BlockBackend<TBl> + BlockIdTo<TBl, Error = Error> + ProofProvider<TBl> + HeaderBackend<TBl> + BlockchainEvents<TBl> + ExecutorProvider<TBl> + UsageProvider<TBl> + StorageProvider<TBl, TBackend> + CallApiAt<TBl> + Send + 'static, <TCl as ProvideRuntimeApi<TBl>>::Api: Metadata<TBl> + TaggedTransactionQueue<TBl> + SessionKeys<TBl> + ApiExt<TBl>, TBl: BlockT, TBl::Hash: Unpin, TBl::Header: Unpin, TBackend: 'static + Backend<TBl> + Send, TExPool: MaintainedTransactionPool<Block = TBl, Hash = <TBl as BlockT>::Hash> + 'static,
Expand description

Spawn the tasks that are required to run a node.