Skip to content

docs: clarify the imprecise "meant for peer discovery only" wording f…#501

Merged
taxmeifyoucan merged 4 commits into
eth-protocol-fellows:mainfrom
mark0-cn:main
Apr 22, 2026
Merged

docs: clarify the imprecise "meant for peer discovery only" wording f…#501
taxmeifyoucan merged 4 commits into
eth-protocol-fellows:mainfrom
mark0-cn:main

Conversation

@mark0-cn
Copy link
Copy Markdown
Contributor

This PR clarifies the discv5 section in the CL networking documentation. The previous wording, especially "meant for peer discovery only", was overly narrow and did not fully reflect the official devp2p discv5 specification. This update revises the description to better capture discv5 as a UDP-based node discovery protocol and adds its three core functions: sampling live participants, searching for participants providing a certain service, and retrieving the latest node record for a known node ID. It also keeps the relationship between discv5 and libp2p clear in the consensus-layer context.

Copy link
Copy Markdown
Contributor

@taxmeifyoucan taxmeifyoucan left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, it's very simplified that the current text says it's peer discovery only. It's still a bit ambivalent and could be more specific about the protocol (Kademlia routing table + lookup) and features you are listing

Comment thread docs/wiki/CL/cl-networking.md Outdated
Discovery Version 5 [(discv5)][discv5] (Protocol version v5.1) runs on UDP and meant for peer discovery only. It enables nodes to exchange and update ENRs dynamically, ensuring up-to-date peer discovery. It runs in parallel with libp2p.
Discovery Version 5 [(discv5)][discv5] (Protocol version v5.1) is a
UDP-based node discovery protocol. It is used to discover peers and retrieve
the latest Ethereum Node Records (ENRs). Its three core functions are:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

new line in middle of sentence, not only here

@mark0-cn
Copy link
Copy Markdown
Contributor Author

Thanks for the PR, it's very simplified that the current text says it's peer discovery only. It's still a bit ambivalent and could be more specific about the protocol (Kademlia routing table + lookup) and features you are listing

Okay, I'll continue improving on this branch.

@mark0-cn mark0-cn requested a review from taxmeifyoucan April 15, 2026 13:34
@taxmeifyoucan
Copy link
Copy Markdown
Contributor

Thanks for the updates!

@taxmeifyoucan taxmeifyoucan merged commit 3bee04b into eth-protocol-fellows:main Apr 22, 2026
1 of 2 checks passed
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.

2 participants