Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kant777 authored Jan 13, 2024
1 parent e4372e2 commit 8a5b2ee
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions geth-poa/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ fi

# Obtain assigned container IP for p2p
NODE_IP=${NODE_IP:-$(hostname -i)}
PUBLIC_NODE_IP=${PUBLIC_NODE_IP:-$NODE_IP}

# (Optional) Echo the values for verification
echo "NODE_IP is set to: $NODE_IP"
echo "EXTERNAL_NODE_IP is set to: $PUBLIC_NODE_IP"

if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
echo "Starting bootnode"
Expand Down Expand Up @@ -79,7 +84,7 @@ if [ "$GETH_NODE_TYPE" = "bootnode" ]; then
--pprof.port=60601 \
--nodekey $GETH_DATA_DIR/boot.key \
--netrestrict $NET_RESTRICT \
--nat extip:$NODE_IP \
--nat extip:$PUBLIC_NODE_IP \
--txpool.accountqueue=512 \
--rpc.allow-unprotected-txs

Expand Down Expand Up @@ -125,7 +130,7 @@ elif [ "$GETH_NODE_TYPE" = "signer" ]; then
--authrpc.port="8551" \
--authrpc.vhosts="*" \
--txpool.accountqueue=512 \
--nat extip:$NODE_IP
--nat extip:$PUBLIC_NODE_IP

elif [ "$GETH_NODE_TYPE" = "member" ]; then
echo "Starting member node"
Expand Down Expand Up @@ -163,7 +168,7 @@ elif [ "$GETH_NODE_TYPE" = "member" ]; then
--authrpc.port="8551" \
--authrpc.vhosts="*" \
--txpool.accountqueue=512 \
--nat extip:$NODE_IP
--nat extip:$PUBLIC_NODE_IP
else
echo "Invalid GETH_NODE_TYPE specified"
fi

0 comments on commit 8a5b2ee

Please sign in to comment.