pub fn build_offchain_workers<TBl, TCl>(
    config: &Configuration,
    spawn_handle: SpawnTaskHandle,
    client: Arc<TCl>,
    network: Arc<dyn NetworkProvider + Send + Sync>
) -> 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.