Skip to content

Fall back to IP-only majority with local discovery port - #316

Open
NikhilSharmaWe wants to merge 1 commit into
sigp:masterfrom
NikhilSharmaWe:fix/ip-only-majority-enr-update
Open

NikhilSharmaWe wants to merge 1 commit into
sigp:masterfrom
NikhilSharmaWe:fix/ip-only-majority-enr-update

Conversation

@NikhilSharmaWe

Copy link
Copy Markdown

Description

After #292, competing UDP ports for the same public IP produce no ENR update. That is correct when the voted ports are ephemeral and unreachable, but it also leaves nodes with a stable public IP and a forwarded listen port without any advertised address (see sigp/lighthouse#10172).

Prefer a clear IP:port majority as today. If ports disagree but the IP has a clear majority, advertise that IP with the local ENR UDP port, else the listen port.

Test plan

  • cargo test --lib
  • cargo clippy --lib -- -D warnings

Signed-off-by: Nikhil Sharma <nikhilsharma230303@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant