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

Commit 49a9e39

Browse files
author
brendanedelson
authored
add offchain worker to parachain config (#1860)
1 parent f199f90 commit 49a9e39

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

parachain-template/node/src/service.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,15 @@ async fn start_node_impl(
210210
warp_sync: None,
211211
})?;
212212

213+
if parachain_config.offchain_worker.enabled {
214+
sc_service::build_offchain_workers(
215+
&parachain_config,
216+
task_manager.spawn_handle(),
217+
client.clone(),
218+
network.clone(),
219+
);
220+
}
221+
213222
let rpc_builder = {
214223
let client = client.clone();
215224
let transaction_pool = transaction_pool.clone();

0 commit comments

Comments
 (0)