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

This commit is contained in:
Tomasz Drwięga authored and Benjamin Kampmann committed 2019-09-10 16:15:32 +02:00
1 parent 1450719acc
commit 2beeda1488
1 file changed
+1
@@ -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>);
}
}