mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 02:01:02 +00:00
Don't initialize block for offchain workers. (#3578)
This commit is contained in:
committed by
Benjamin Kampmann
parent
1450719acc
commit
2beeda1488
@@ -26,6 +26,7 @@ decl_runtime_apis! {
|
|||||||
/// The offchain worker api.
|
/// The offchain worker api.
|
||||||
pub trait OffchainWorkerApi {
|
pub trait OffchainWorkerApi {
|
||||||
/// Starts the off-chain task for given block number.
|
/// Starts the off-chain task for given block number.
|
||||||
|
#[skip_initialize_block]
|
||||||
fn offchain_worker(number: NumberFor<Block>);
|
fn offchain_worker(number: NumberFor<Block>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user