From dc4964f1ef9c5479af45a727d37ecc2beb8d3057 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 10:59:48 +0000 Subject: [PATCH] feat: Updated scripts/private-networking/clique-va --- scripts/private-networking/clique-validators.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/private-networking/clique-validators.sh b/scripts/private-networking/clique-validators.sh index 00609ebd176..6dc863dd359 100644 --- a/scripts/private-networking/clique-validators.sh +++ b/scripts/private-networking/clique-validators.sh @@ -3,7 +3,9 @@ # SPDX-License-Identifier: LGPL-3.0-only #exit when any command fails -set -e +# Error handling and logging +exec 2> setup_errors.log +set -Eeuo pipefail DEBIAN_FRONTEND=noninteractive # Install required packages @@ -123,7 +125,7 @@ cat < node_$1/configs/config.cfg "ChainSpecPath": "/config/genesis/goerli.json", "BaseDbPath": "nethermind_db/clique", "LogFileName": "clique.logs.txt", - "StaticNodesPath": "Data/static-nodes.json" + "StaticNodesPath": "./static-nodes.json" }, "Network": { "DiscoveryPort": $2, @@ -147,6 +149,8 @@ function writeEmptyStaticNodesFile() { cat < static-nodes.json [ +] + ] EOF } @@ -193,7 +197,7 @@ EOF function readSigners() { log=$(docker logs node_$1 | grep Node) - left_part=$(echo $log | cut -d ':' -f2) + left_part=$(echo $log | cut -d ':' -f2-) hash="${left_part%%(*}" result=$(echo $hash | cut -c 3-) echo "$result"