diff --git a/besu.yml b/besu.yml index 6cb6db41..740685e6 100644 --- a/besu.yml +++ b/besu.yml @@ -27,6 +27,7 @@ services: - EL_EXTRAS=${EL_EXTRAS:-} - ARCHIVE_NODE=${ARCHIVE_NODE:-} - NETWORK=${NETWORK} + - IPV6=${IPV6:-false} volumes: - besu-el-data:/var/lib/besu - besu-eth1-data:/var/lib/besu-og diff --git a/besu/docker-entrypoint.sh b/besu/docker-entrypoint.sh index 5fa93b13..2aee7d17 100755 --- a/besu/docker-entrypoint.sh +++ b/besu/docker-entrypoint.sh @@ -72,6 +72,14 @@ else __datadir="--data-path /var/lib/besu" fi +# DiscV5 for IPV6 +if [ "${IPV6:-false}" = "true" ]; then + echo "Configuring Besu for discv5 for IPv6 advertisements" + __ipv6="--Xv5-discovery-enabled" +else + __ipv6="" +fi + if [ -f /var/lib/besu/prune-marker ]; then rm -f /var/lib/besu/prune-marker if [ "${ARCHIVE_NODE}" = "true" ]; then @@ -84,5 +92,5 @@ if [ -f /var/lib/besu/prune-marker ]; then else # Word splitting is desired for the command line parameters # shellcheck disable=SC2086 - exec "$@" ${__datadir} ${__network} ${__prune} ${__spec} ${EL_EXTRAS} + exec "$@" ${__datadir} ${__network} ${__ipv6} ${__prune} ${__spec} ${EL_EXTRAS} fi diff --git a/nethermind.yml b/nethermind.yml index 0a233b2c..0f404132 100644 --- a/nethermind.yml +++ b/nethermind.yml @@ -81,6 +81,7 @@ services: - "6060" - --Pruning.FullPruningCompletionBehavior - AlwaysShutdown + - --Discovery.Discv5Enabled - --log - ${LOG_LEVEL} labels: