Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(disc): correct order of NodeRecord fields #9858

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

dknopik
Copy link
Contributor

@dknopik dknopik commented Jul 28, 2024

According to https://github.com/ethereum/devp2p/blob/master/discv4.md#neighbors-packet-0x04, the correct order of the node record fields is [ip, udp-port, tcp-port, node-id]. The port fields were swapped in our NodeRecord struct, which caused to Reth use the TCP port during discovery, causing it to fail if the port numbers are unequal.

@dknopik dknopik marked this pull request as draft July 28, 2024 18:00
@mattsse mattsse marked this pull request as ready for review July 28, 2024 18:11
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattsse mattsse added C-bug An unexpected or incorrect behavior A-networking Related to networking in general labels Jul 28, 2024
@mattsse mattsse enabled auto-merge July 28, 2024 18:23
@mattsse mattsse added this pull request to the merge queue Jul 28, 2024
Merged via the queue into paradigmxyz:main with commit fe2af8f Jul 28, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants