From 71000ef9f35e05a0f6ec219491c2b72047a58292 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Tue, 28 Nov 2023 17:14:04 +0530 Subject: [PATCH] fix: centrifuge image tag updated for resolving bin/sh issue --- parachain/parachain.star | 13 +++++++------ parachain/static_files/images.star | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/parachain/parachain.star b/parachain/parachain.star index ed520df..54ab5b1 100644 --- a/parachain/parachain.star +++ b/parachain/parachain.star @@ -52,14 +52,14 @@ def start_local_parachain_node(plan, args, parachain_name, para_id): for node in args["para"][parachain]["nodes"]: parachain_detail = {} parachain_spawn_detail = spawn_parachain(plan, "{0}-{1}-{2}".format(parachain, node["name"], args["chain-type"]), image, exec_comexec_commandmand, build_file = raw_service.name) - parachain_detail["node_details"]=parachain_spawn_detail - parachain_detail["nodename"]=node["name"] + parachain_detail["node_details"] = parachain_spawn_detail + parachain_detail["nodename"] = node["name"] parachain_final.append(parachain_detail) return parachain_final - + def start_nodes(plan, args, relay_chain_ip): parachains = args["para"] - final_parachain_details=[] + final_parachain_details = [] for parachain in parachains: parachain_details = {} para_id = register_para_slot.register_para_id(plan, relay_chain_ip) @@ -71,6 +71,7 @@ def start_nodes(plan, args, relay_chain_ip): return final_parachain_details def run_testnet_mainnet(plan, args, parachain): + parachain_config = parachain if args["chain-type"] == "testnet": main_chain = "rococo" if parachain == "ajuna": @@ -117,13 +118,13 @@ def run_testnet_mainnet(plan, args, parachain): "--unsafe-ws-external", ] parachain_info = {parachain: {}} - para_nodes = args["para"][parachain]["nodes"] + para_nodes = args["para"][parachain_config]["nodes"] for node in para_nodes: command = common_command command = command + ["--name={0}".format(node["name"])] if node["node-type"] == "collator": command = command + ["--collator"] - + if node["node-type"] == "validator": command = command + ["--validator"] diff --git a/parachain/static_files/images.star b/parachain/static_files/images.star index 80430d8..de361b2 100644 --- a/parachain/static_files/images.star +++ b/parachain/static_files/images.star @@ -16,7 +16,7 @@ parachain_images = { "base": ["bifrost-local", "bifrost-kusama-rococo", "bifrost-polkadot"], }, "centrifuge": { - "image": "centrifugeio/centrifuge-chain:test-main-latest", + "image": "centrifugeio/centrifuge-chain:test-PR1628-354d76c-23-11-28", "entrypoint": "/usr/local/bin/centrifuge-chain", "base": ["centrifuge-local", "catalyst", "centrifuge"], },