From 1bd0a261108c29a1bc251e2cee2ac1f53738471a Mon Sep 17 00:00:00 2001 From: paolino Date: Wed, 25 Sep 2024 14:20:08 +0000 Subject: [PATCH] Add newtwork magic argument to cardano-cli ping invocation in run with nix --- run/common/nix/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run/common/nix/run.sh b/run/common/nix/run.sh index 0c12d26c29e..d82d58df018 100755 --- a/run/common/nix/run.sh +++ b/run/common/nix/run.sh @@ -122,6 +122,7 @@ else fi +magic=$(jq .networkMagic $LOCAL_NODE_CONFIGS/shelley-genesis.json) ##### Wait until the node is ready ##### # Capture the start time @@ -134,7 +135,7 @@ timeout_duration=3600 while true; do # Execute the command failure_status=0 - cardano-cli ping -u "${NODE_SOCKET_PATH}" 2>/dev/null || failure_status=1 + cardano-cli ping -m "${magic}" -u "${NODE_SOCKET_PATH}" 2>/dev/null || failure_status=1 # Check if the command succeeded # shellcheck disable=SC2181 if [[ "$failure_status" -eq 0 ]]; then