add offchain worker to parachain config (#1860)

This commit is contained in:
brendanedelson authored and GitHub committed 2022-11-11 11:39:36 +01:00
1 parent f199f90137
commit 49a9e394cf
1 file changed
+9
+9
View File
@@ -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();