Skip to content

Commit d20b73e

Browse files
authored
feat: add additional port configuration options for disc/p2p (base#465)
1 parent 32c0b61 commit d20b73e

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

geth/geth-entrypoint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ AUTHRPC_PORT="${AUTHRPC_PORT:-8551}"
99
METRICS_PORT="${METRICS_PORT:-6060}"
1010
HOST_IP="" # put your external IP address here and open port 30303 to improve peer connectivity
1111
P2P_PORT="${P2P_PORT:-30303}"
12+
DISCOVERY_PORT="${DISCOVERY_PORT:-30303}"
1213
ADDITIONAL_ARGS=""
1314
OP_GETH_GCMODE="${OP_GETH_GCMODE:-full}"
1415
OP_GETH_SYNCMODE="${OP_GETH_SYNCMODE:-full}"
@@ -80,6 +81,7 @@ exec ./geth \
8081
--rollup.sequencerhttp="$OP_GETH_SEQUENCER_HTTP" \
8182
--rollup.halt=major \
8283
--op-network="$OP_NODE_NETWORK" \
84+
--discovery.port="$DISCOVERY_PORT" \
8385
--port="$P2P_PORT" \
8486
--rollup.disabletxpoolgossip=true \
8587
--cache="$GETH_CACHE" \

nethermind/nethermind-entrypoint

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WS_PORT="${WS_PORT:-8546}"
1111
AUTHRPC_PORT="${AUTHRPC_PORT:-8551}"
1212
METRICS_PORT="${METRICS_PORT:-6060}"
1313
DISCOVERY_PORT="${DISCOVERY_PORT:-30303}"
14-
14+
P2P_PORT="${P2P_PORT:-30303}"
1515
JWT_SECRET_FILE=${JWT_SECRET_FILE:-/tmp/jwt/jwtsecret}
1616
ADDITIONAL_ARGS=""
1717

@@ -60,4 +60,6 @@ exec ./nethermind \
6060
--HealthChecks.Enabled=true \
6161
--Metrics.Enabled=true \
6262
--Metrics.ExposePort="$METRICS_PORT" \
63+
--Network.P2PPort="$P2P_PORT" \
64+
--Network.DiscoveryPort="$DISCOVERY_PORT" \
6365
$ADDITIONAL_ARGS

reth/reth-entrypoint

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ RPC_PORT="${RPC_PORT:-8545}"
77
WS_PORT="${WS_PORT:-8546}"
88
AUTHRPC_PORT="${AUTHRPC_PORT:-8551}"
99
METRICS_PORT="${METRICS_PORT:-6060}"
10+
DISCOVERY_PORT="${DISCOVERY_PORT:-30303}"
11+
P2P_PORT="${P2P_PORT:-30303}"
1012
ADDITIONAL_ARGS=""
1113
NODE_TYPE="${NODE_TYPE:-vanilla}"
1214

@@ -56,4 +58,6 @@ exec $BINARY node \
5658
--chain "$RETH_CHAIN" \
5759
--rollup.sequencer-http=$RETH_SEQUENCER_HTTP \
5860
--rollup.disable-tx-pool-gossip \
61+
--discovery.port="$DISCOVERY_PORT" \
62+
--port="$P2P_PORT" \
5963
$ADDITIONAL_ARGS

0 commit comments

Comments
 (0)