Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions reth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ services:
- NETWORK=${NETWORK}
- STATIC_DIR=${ANCIENT_DIR}
- COMPOSE_FILE=${COMPOSE_FILE}
- IPV6=${IPV6:-false}
- EL_P2P_PORT_2=${EL_P2P_PORT_2:-30304}
# Make this RUST_LOG=${LOG_LEVEL:-info},engine=trace when requiring deep debug
# RPC debug can be done with jsonrpsee=trace or jsonrpsee::target=trace for a specific target
# - RUST_LOG=${LOG_LEVEL:-info},engine=trace
Expand Down
10 changes: 9 additions & 1 deletion reth/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ else
__trace=""
fi

# IPV6
if [[ "${IPV6:-false}" = "true" ]]; then
echo "Configuring Reth's discv5 for IPv6 advertisements"
__ipv6="--addr :: --discovery.v5.addr 0.0.0.0 --discovery.v5.port.ipv6 ${EL_P2P_PORT_2}"
else
__ipv6=""
fi

if [[ -f /var/lib/reth/prune-marker ]]; then
rm -f /var/lib/reth/prune-marker
if [[ "${NODE_TYPE}" = "archive" ]]; then
Expand All @@ -189,5 +197,5 @@ if [[ -f /var/lib/reth/prune-marker ]]; then
else
# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
exec "$@" ${__network} ${__verbosity} ${__static} ${__prune} ${__trace} ${EL_EXTRAS}
exec "$@" ${__network} ${__verbosity} ${__static} ${__prune} ${__trace} ${__ipv6} ${EL_EXTRAS}
fi
Loading