Function sc_service::build_offchain_workers [−][src]
pub fn build_offchain_workers<TBl, TCl>(
config: &Configuration,
spawn_handle: SpawnTaskHandle,
client: Arc<TCl>,
network: Arc<NetworkService<TBl, <TBl as BlockT>::Hash>>
) -> Option<Arc<OffchainWorkers<TCl, TBl>>> where
TBl: BlockT,
TCl: Send + Sync + ProvideRuntimeApi<TBl> + BlockchainEvents<TBl> + 'static,
<TCl as ProvideRuntimeApi<TBl>>::Api: OffchainWorkerApi<TBl>,
Expand description
Build a shared offchain workers instance.