pub async fn notification_future<Client, Block, Spawner>(
    is_validator: bool,
    client: Arc<Client>,
    offchain: Arc<OffchainWorkers<Client, Block>>,
    spawner: Spawner,
    network_provider: Arc<dyn NetworkProvider + Send + Sync>
)where
    Block: Block,
    Client: ProvideRuntimeApi<Block> + BlockchainEvents<Block> + Send + Sync + 'static,
    Client::Api: OffchainWorkerApi<Block>,
    Spawner: SpawnNamed,
Expand description

Inform the offchain worker about new imported blocks