Skip to content

Commit

Permalink
discv5
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Sep 30, 2024
1 parent 068144d commit 11df859
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions besu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion besu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 2 additions & 0 deletions nethermind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ services:
- "6060"
- --Pruning.FullPruningCompletionBehavior
- AlwaysShutdown
- --Discovery.Discv5Enabled
- "true"
- --log
- ${LOG_LEVEL}
labels:
Expand Down

0 comments on commit 11df859

Please sign in to comment.