From e680d3588b07f5b49b25ab297a643312ec729747 Mon Sep 17 00:00:00 2001 From: kant777 <61204489+kant777@users.noreply.github.com> Date: Sat, 20 Jan 2024 02:22:08 -0800 Subject: [PATCH] Update entrypoint.sh --- geth-poa/entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/geth-poa/entrypoint.sh b/geth-poa/entrypoint.sh index 4894acf9f1..b67afa50ff 100644 --- a/geth-poa/entrypoint.sh +++ b/geth-poa/entrypoint.sh @@ -99,11 +99,12 @@ if [ "$GETH_NODE_TYPE" = "bootnode" ]; then elif [ "$GETH_NODE_TYPE" = "signer" ]; then echo "Starting signer node" echo "BOOTNODE_ENDPOINT is set to: $BOOTNODE_ENDPOINT" + GETH_PORT="${GETH_PORT:-30311}" exec "$GETH_BIN_PATH" \ --verbosity="$VERBOSITY" \ --datadir="$GETH_DATA_DIR" \ - --port 30311 \ + --port="$GETH_PORT" \ --syncmode=full \ --gcmode=full \ --state.scheme=path \ @@ -144,11 +145,12 @@ elif [ "$GETH_NODE_TYPE" = "signer" ]; then elif [ "$GETH_NODE_TYPE" = "member" ]; then echo "Starting member node" echo "BOOTNODE_ENDPOINT is set to: $BOOTNODE_ENDPOINT" + GETH_PORT="${GETH_PORT:-30311}" exec "$GETH_BIN_PATH" \ --verbosity="$VERBOSITY" \ --datadir="$GETH_DATA_DIR" \ - --port 30311 \ + --port="$GETH_PORT" \ --syncmode=full \ --gcmode=full \ --state.scheme=path \