From f2555440ea300be5e017e4fdc62d95e6bd474d5d Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Wed, 3 Jan 2024 14:25:29 +0530 Subject: [PATCH 1/2] fix: bifrost local node --- package_io/constant.star | 4 ++-- parachain/parachain.star | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package_io/constant.star b/package_io/constant.star index aa3a8f5..10d5dbe 100644 --- a/package_io/constant.star +++ b/package_io/constant.star @@ -5,7 +5,7 @@ CURL_JQ_IMAGE = "badouralix/curl-jq" NODE_IMAGE = "hugobyte/parachain-node-modules" PARA_SLOT_REGISTER_SERVICE_NAME = "para-slot-registration" BINARY_COMMAND_CHAINS = ["manta", "khala", "phala", "clover", "calamari", "subzero", "robonomics"] -NO_WS_PORT = ["acala", "frequency", "moonbeam", "karura", "ajuna", "bajun", "centrifuge", "moonsama", "encointer", "moonriver", "altair", "mangata", "khala", "phala", "turing"] +NO_WS_PORT = ["acala", "frequency", "moonbeam", "karura", "ajuna", "bajun", "centrifuge", "moonsama", "encointer", "moonriver", "altair", "mangata", "khala", "phala", "turing", "bifrost"] DIFFERENT_IMAGES_FOR_MAINNET = { "centrifuge": "centrifugeio/centrifuge-chain:main-latest", @@ -20,7 +20,7 @@ DIFFERENT_IMAGES_FOR_TESTNET = { "clover": "cloverio/clover-iris:0.1.15", "subsocial": "dappforce/subsocial-parachain:latest", "altair": "centrifugeio/centrifuge-chain:main-latest", - "acala": "acala/mandala-node:latest" + "acala": "acala/mandala-node:latest", } CHAIN_COMMAND = ["manta", "moonsama", "interlay", "kintsugi-btc", "polkadex", "centrifuge", "altair", "robonomics", "kilt"] diff --git a/parachain/parachain.star b/parachain/parachain.star index d187b3d..e1997c7 100644 --- a/parachain/parachain.star +++ b/parachain/parachain.star @@ -30,7 +30,7 @@ def spawn_parachain(plan, chain_name, image, command, build_file): image = image, files = files, ports = { - "ws": PortSpec(9944, transport_protocol = "TCP", application_protocol = "http"), + "ws": PortSpec(9946, transport_protocol = "TCP", application_protocol = "http"), "metrics": PortSpec(9615, transport_protocol = "TCP", application_protocol = "http"), "lib": PortSpec(30333, transport_protocol = "TCP", application_protocol = "http"), }, @@ -67,13 +67,13 @@ def start_local_parachain_node(plan, args, parachain_config, para_id): exec_comexec_commandmand = [ "/bin/bash", "-c", - "{0} --base-path=/tmp/{1} --chain=/build/{1}-raw.json --rpc-port=9944 --port=30333 --rpc-external --rpc-cors=all --prometheus-external --{2} --collator --rpc-methods=unsafe --force-authoring --execution=wasm --trie-cache-size=0 -- --chain=/app/raw-polkadot.json --execution=wasm".format(binary, chain_name, node["name"]), + "{0} --base-path=/tmp/{1} --chain=/build/{1}-raw.json --rpc-port=9946 --port=30333 --rpc-external --rpc-cors=all --prometheus-external --{2} --collator --rpc-methods=unsafe --force-authoring --execution=wasm --trie-cache-size=0 -- --chain=/app/raw-polkadot.json --execution=wasm".format(binary, chain_name, node["name"]), ] else: exec_comexec_commandmand = [ "/bin/bash", "-c", - "{0} --base-path=/tmp/{1} --chain=/build/{1}-raw.json --ws-port=9944 --port=30333 --rpc-port=9933 --ws-external --rpc-external --prometheus-external --rpc-cors=all --{2} --collator --rpc-methods=unsafe --force-authoring --execution=wasm -- --chain=/app/raw-polkadot.json --execution=wasm".format(binary, chain_name, node["name"]), + "{0} --base-path=/tmp/{1} --chain=/build/{1}-raw.json --ws-port=9946 --port=30333 --rpc-port=9933 --ws-external --rpc-external --prometheus-external --rpc-cors=all --{2} --collator --rpc-methods=unsafe --force-authoring --execution=wasm -- --chain=/app/raw-polkadot.json --execution=wasm".format(binary, chain_name, node["name"]), ] parachain_spawn_detail = spawn_parachain(plan, "{0}-{1}-{2}".format(parachain, node["name"].lower(), args["chain-type"]), image, exec_comexec_commandmand, build_file = raw_service.name) parachain_detail["service_name"] = parachain_spawn_detail.name From 59bfc7ea9f786719170dae46296238b5b07ebb4f Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Wed, 3 Jan 2024 14:35:14 +0530 Subject: [PATCH 2/2] fix: phala and khala --ws-port issue --- package_io/constant.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_io/constant.star b/package_io/constant.star index 10d5dbe..8c481b0 100644 --- a/package_io/constant.star +++ b/package_io/constant.star @@ -5,7 +5,7 @@ CURL_JQ_IMAGE = "badouralix/curl-jq" NODE_IMAGE = "hugobyte/parachain-node-modules" PARA_SLOT_REGISTER_SERVICE_NAME = "para-slot-registration" BINARY_COMMAND_CHAINS = ["manta", "khala", "phala", "clover", "calamari", "subzero", "robonomics"] -NO_WS_PORT = ["acala", "frequency", "moonbeam", "karura", "ajuna", "bajun", "centrifuge", "moonsama", "encointer", "moonriver", "altair", "mangata", "khala", "phala", "turing", "bifrost"] +NO_WS_PORT = ["acala", "frequency", "moonbeam", "karura", "ajuna", "bajun", "centrifuge", "moonsama", "encointer", "moonriver", "altair", "mangata", "khala", "phala", "turing", "bifrost", "khala", "phala"] DIFFERENT_IMAGES_FOR_MAINNET = { "centrifuge": "centrifugeio/centrifuge-chain:main-latest",