From 85aa06e0f0e80c74863092c3cee6594eeab235e3 Mon Sep 17 00:00:00 2001 From: Son of Odin <2700975-son-of-odin@users.noreply.gitlab.com> Date: Thu, 2 Nov 2023 16:18:04 -0400 Subject: [PATCH] update docker image --- scripts/validator.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/validator.sh b/scripts/validator.sh index 6b3aa84f..ddb79313 100755 --- a/scripts/validator.sh +++ b/scripts/validator.sh @@ -1,3 +1,4 @@ + #!/bin/bash set -o pipefail @@ -26,17 +27,17 @@ if [ ! -f ~/.arkeo/config/genesis.json ]; then fi # wait for peer - until curl -s "$PEER:$PORT_RPC" 1>/dev/null 2>&1; do - echo "Waiting for peer: $PEER:$PORT_RPC" + until curl -s "$PEER" 1>/dev/null 2>&1; do + echo "Waiting for peer: $PEER" sleep 3 done # fetch genesis file from seed node - curl -sL "$PEER:$PORT_RPC/genesis" | jq '.result.genesis' > ~/.arkeo/config/genesis.json + curl -sL "$PEER/genesis" | jq '.result.genesis' > ~/.arkeo/config/genesis.json # fetch node id - SEED_ID=$(curl -s "$PEER:$PORT_RPC/status" | jq -r .result.node_info.id) - SEEDS="$SEED_ID@$PEER:$PORT_P2P" + SEED_ID=$(curl -s "$PEER/status" | jq -r .result.node_info.id) + SEEDS="$SEED_ID@$SEED" sed -i 's/enable = false/enable = true/g' ~/.arkeo/config/app.toml sed -i "s/seeds = \"\"/seeds = \"$PEER_ID@$SEED\"/g" ~/.arkeo/config/config.toml