mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +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,
|
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 rpc_builder = {
|
||||||
let client = client.clone();
|
let client = client.clone();
|
||||||
let transaction_pool = transaction_pool.clone();
|
let transaction_pool = transaction_pool.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user