Skip to content

Commit 81a4eb6

Browse files
committed
fix(nethermind): validate OP_NODE_NETWORK in entrypoint
1 parent b284f35 commit 81a4eb6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nethermind/nethermind-entrypoint

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set -eu
44
# Default configurations
55
NETHERMIND_DATA_DIR=${NETHERMIND_DATA_DIR:-/data}
66
NETHERMIND_LOG_LEVEL=${NETHERMIND_LOG_LEVEL:-Info}
7-
NETWORK=${NETWORK:-mainnet}
87

98
RPC_PORT="${RPC_PORT:-8545}"
109
WS_PORT="${WS_PORT:-8546}"
@@ -16,8 +15,8 @@ JWT_SECRET_FILE=${JWT_SECRET_FILE:-/tmp/jwt/jwtsecret}
1615
ADDITIONAL_ARGS=""
1716

1817
# Check if required variables are set
19-
if [[ -z "$NETWORK" ]]; then
20-
echo "Expected NETWORK to be set" 1>&2
18+
if [[ -z "$OP_NODE_NETWORK" ]]; then
19+
echo "Expected OP_NODE_NETWORK to be set" 1>&2
2120
exit 1
2221
fi
2322

0 commit comments

Comments
 (0)