Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
enable offchain workers
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Mar 2, 2021
1 parent 56b48bf commit 7fffe2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,8 @@ sp_api::impl_runtime_apis! {

impl offchain_primitives::OffchainWorkerApi<Block> for Runtime {
fn offchain_worker(header: &<Block as BlockT>::Header) {
frame_support::debug::RuntimeLogger::init();
frame_support::debug::info!("offchain_worker");
Executive::offchain_worker(header)
}
}
Expand Down

0 comments on commit 7fffe2b

Please sign in to comment.