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

Commit

Permalink
add offchain worker to parachain config (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanedelson committed Nov 11, 2022
1 parent f199f90 commit 49a9e39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions parachain-template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,15 @@ async fn start_node_impl(
warp_sync: None,
})?;

if parachain_config.offchain_worker.enabled {
sc_service::build_offchain_workers(
&parachain_config,
task_manager.spawn_handle(),
client.clone(),
network.clone(),
);
}

let rpc_builder = {
let client = client.clone();
let transaction_pool = transaction_pool.clone();
Expand Down

0 comments on commit 49a9e39

Please sign in to comment.