Function moonbeam_service::rpc::spawn_essential_tasks
source · pub fn spawn_essential_tasks<B, C, BE>(
params: SpawnTasksParams<'_, B, C, BE>,
sync: Arc<SyncingService<B>>,
pubsub_notification_sinks: Arc<EthereumBlockNotificationSinks<EthereumBlockNotification<B>>>,
)where
C: ProvideRuntimeApi<B> + BlockOf + HeaderBackend<B> + HeaderMetadata<B, Error = Error> + 'static + BlockchainEvents<B> + StorageProvider<B, BE> + Send + Sync,
C::Api: EthereumRuntimeRPCApi<B> + BlockBuilder<B>,
B: BlockT<Hash = H256> + Send + Sync + 'static,
B::Header: HeaderT<Number = u32>,
BE: Backend<B> + 'static,
BE::State: StateBackend<BlakeTwo256>,
Expand description
Spawn the tasks that are required to run Moonbeam.