From 9a7c234c7572bd5ce6603fa87e22e5332c7cade9 Mon Sep 17 00:00:00 2001 From: cr4pt0 <102041955+cr4pt0@users.noreply.github.com> Date: Wed, 1 Mar 2023 13:33:03 +0000 Subject: [PATCH] enable off-chain workers for pendulum node. (#136) * Add bootnodes to Pendulum chain specs (#104) * enable off chain workers for pendulum node. --------- Co-authored-by: Gonza Montiel --- node/src/service.rs | 9 +++++++++ res/pendulum-spec-raw.json | 11 ++++++++++- res/pendulum-spec.json | 11 ++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/node/src/service.rs b/node/src/service.rs index 2cd12ac10..1fec8d283 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -315,6 +315,15 @@ where 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(); diff --git a/res/pendulum-spec-raw.json b/res/pendulum-spec-raw.json index 1ae655d77..2925145df 100644 --- a/res/pendulum-spec-raw.json +++ b/res/pendulum-spec-raw.json @@ -2,7 +2,16 @@ "name": "Pendulum", "id": "pendulum", "chainType": "Live", - "bootNodes": [], + "bootNodes": [ + "/dns4/penawsuse-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWPfFVdVqSb8vaZLvkWCDxkuvhLu3S9cX8soQpQNzUyLD9", + "/dns4/penawsuse-collator-01.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWNWauGnqHbFxfAg7Z9e8Zr1apnp5CacRAL9MG9Fin9PxG", + "/dns4/penawsuse-collator-02.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWJ9LpJLXbtTVzoFDa92x4szwcUCHZAj7EFzm7tVEv6jX9", + "/dns4/penawsuse-collator-03.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWQ4ZVdm5mxQz6ubH2mwZHmEahy3dP6tVZWmJzUmFnZc2H", + "/dns4/penctbsyd-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWDMRjvK63jat9r8fe1mLmXcCKwH3zw2oGZyJfCNFFmDor", + "/dns4/penctbsin-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWAqbWpvqjP5XqhN5X34y2URWa925EaZRaukxDpfokYa4G", + "/dns4/penctbusw-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWFN9eu5r5RRA9v2AA9NJnwLU4akX9i1pw41ni6835feDf", + "/dns4/penctbeur-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWBVtsdFV8cLG7o2mVXNRMcRVrW463aCVQYU6v1atQNPwt" + ], "telemetryEndpoints": null, "protocolId": "pendulum", "properties": { diff --git a/res/pendulum-spec.json b/res/pendulum-spec.json index 71e96832b..5f5ae4653 100644 --- a/res/pendulum-spec.json +++ b/res/pendulum-spec.json @@ -2,7 +2,16 @@ "name": "Pendulum", "id": "pendulum", "chainType": "Live", - "bootNodes": [], + "bootNodes": [ + "/dns4/penawsuse-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWPfFVdVqSb8vaZLvkWCDxkuvhLu3S9cX8soQpQNzUyLD9", + "/dns4/penawsuse-collator-01.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWNWauGnqHbFxfAg7Z9e8Zr1apnp5CacRAL9MG9Fin9PxG", + "/dns4/penawsuse-collator-02.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWJ9LpJLXbtTVzoFDa92x4szwcUCHZAj7EFzm7tVEv6jX9", + "/dns4/penawsuse-collator-03.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWQ4ZVdm5mxQz6ubH2mwZHmEahy3dP6tVZWmJzUmFnZc2H", + "/dns4/penctbsyd-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWDMRjvK63jat9r8fe1mLmXcCKwH3zw2oGZyJfCNFFmDor", + "/dns4/penctbsin-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWAqbWpvqjP5XqhN5X34y2URWa925EaZRaukxDpfokYa4G", + "/dns4/penctbusw-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWFN9eu5r5RRA9v2AA9NJnwLU4akX9i1pw41ni6835feDf", + "/dns4/penctbeur-collator-00.prd.pendulumchain.tech/tcp/30335/p2p/12D3KooWBVtsdFV8cLG7o2mVXNRMcRVrW463aCVQYU6v1atQNPwt" + ], "telemetryEndpoints": null, "protocolId": "pendulum", "properties": {