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
Seun Lanlege committed Mar 2, 2021
1 parent 56b48bf commit 856a6a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
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: 1 addition & 1 deletion node/test/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,6 @@ mod tests {
#[test]
fn it_works() {
let mut node = Node::<PolkadotChainInfo>::new().unwrap();
node.seal_blocks(5);
node.seal_blocks(15_000);
}
}
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 856a6a8

Please sign in to comment.