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

Add Offchain Worker to Parachain Config by Default #1860

Merged
merged 1 commit into from
Nov 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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