Don't initialize block for offchain workers. (#3578)

This commit is contained in:
Tomasz Drwięga
2019-09-10 16:15:32 +02:00
committed by Benjamin Kampmann
parent 1450719acc
commit 2beeda1488
@@ -26,6 +26,7 @@ decl_runtime_apis! {
/// The offchain worker api.
pub trait OffchainWorkerApi {
/// Starts the off-chain task for given block number.
#[skip_initialize_block]
fn offchain_worker(number: NumberFor<Block>);
}
}