Open
Conversation
…uto-discovery can still override them later. Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
zilm13
reviewed
Mar 30, 2026
CHANGELOG.md
Outdated
|
|
||
| ### Bug Fixes No newline at end of file | ||
| ### Bug Fixes | ||
| - Fixed ipv6 discovery No newline at end of file |
Contributor
There was a problem hiding this comment.
Maybe explain it more, smth like "Fixed automatic detection of local node IPv6 address"
| "The configured advertised IPs must be either 1 or 2"); | ||
| if (advertisedIps.size() == 1) { | ||
| nodeRecordBuilder.address( | ||
| advertisedIps.get(0), discoConfig.getAdvertisedUdpPort(), p2pConfig.getAdvertisedPort()); |
Contributor
There was a problem hiding this comment.
will it work if only ipv6 is configured?
Contributor
Author
There was a problem hiding this comment.
tested and it does work when only the ipv6 interface is configured I haven't tried advertising the IPs since the purpose of this is for the client to discover the ips by themselves when we only specify the interface in this case either --p2p-interface="::" or --p2p-interface="0.0.0.0" --p2p-interface="::" would work
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Populate the initial ENR with the resolved listen addresses, auto-discovery can still override them later. requires Consensys/discovery#202
Fixed Issue(s)
Fixes #10305
Documentation
doc-change-requiredlabel to this PR if updates are required.Changelog
Note
Medium Risk
Changes peer discovery ENR address initialization and IPv6 local-address selection, which can affect node reachability and dual-stack behavior. Scope is limited to networking config/discovery but impacts connectivity if incorrect addresses are chosen.
Overview
Fixes IPv6 discovery by broadening automatic IPv6 local-address selection to prefer any non-loopback, non-link-local address (including global unicast), and removing the previous unique-local-only heuristic.
Updates discv5 startup to always seed the initial ENR with the resolved advertised IP(s) (single- or dual-stack), instead of only doing so when the user explicitly configured advertised IPs; changelog entry added for the IPv6 detection fix.
Written by Cursor Bugbot for commit a44451f. This will update automatically on new commits. Configure here.