Skip to content

Commit

Permalink
Add newtwork magic argument to cardano-cli ping invocation in run wit…
Browse files Browse the repository at this point in the history
…h nix
  • Loading branch information
paolino committed Sep 27, 2024
1 parent 3de4d38 commit 1bd0a26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run/common/nix/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1bd0a26

Please sign in to comment.