mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 12:57:58 +00:00
add offchain worker to parachain config (#1860)
This commit is contained in:
@@ -210,6 +210,15 @@ async fn start_node_impl(
|
||||
warp_sync: None,
|
||||
})?;
|
||||
|
||||
if parachain_config.offchain_worker.enabled {
|
||||
sc_service::build_offchain_workers(
|
||||
¶chain_config,
|
||||
task_manager.spawn_handle(),
|
||||
client.clone(),
|
||||
network.clone(),
|
||||
);
|
||||
}
|
||||
|
||||
let rpc_builder = {
|
||||
let client = client.clone();
|
||||
let transaction_pool = transaction_pool.clone();
|
||||
|
||||
Reference in New Issue
Block a user