Skip to content

Commit e02966a

Browse files
feat: disable discv4, run discv5 on port 30303 by default
DISABLE_DISCV4=true appends --disable-discv4-discovery so callers can opt in without changing the entrypoint. V5_DISCOVERY_PORT now defaults to 30303 (same as devp2p TCP) instead of 9200, improving NAT traversal in environments where only standard p2p ports are allowed outbound. Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent a7f7dd0 commit e02966a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

reth/reth-entrypoint

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ if [[ "$RETH_HISTORICAL_PROOFS" == "true" && -n "$RETH_HISTORICAL_PROOFS_STORAGE
127127
--proofs-history.storage-path=$RETH_HISTORICAL_PROOFS_STORAGE_PATH
128128
fi
129129

130+
if [[ "${DISABLE_DISCV4:-false}" == "true" ]]; then
131+
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --disable-discv4-discovery"
132+
fi
133+
134+
if [[ "${BASE_DISCOVERY_PROTOCOL:-true}" = "false" ]]; then
135+
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --rollup.discovery.v5.base false"
136+
fi
137+
130138
mkdir -p "$RETH_DATA_DIR"
131139
echo "Starting reth with additional args: $ADDITIONAL_ARGS"
132140
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"

0 commit comments

Comments
 (0)