Skip to content

discv5-theory: document topic-distance hint and split lookup/registration responses into matches + auxiliary#3

Merged
srene merged 1 commit into
masterfrom
feat/discv5-theory-disc-ng-clarifications
May 15, 2026
Merged

discv5-theory: document topic-distance hint and split lookup/registration responses into matches + auxiliary#3
srene merged 1 commit into
masterfrom
feat/discv5-theory-disc-ng-clarifications

Conversation

@srene
Copy link
Copy Markdown
Member

@srene srene commented May 15, 2026

Some additions to theory complementing the wire-spec changes in #2.

…lookup responses

The Lookup Responses section says the registrar "may also return
additional ENRs selected from its view of the service table" but
doesn't specify how the selection is made.

Add a recommended algorithm: when the wire-format request carries a
list of topic-distances at which the requester's service table has
free space, the registrar selects at most one ENR per requested
distance from the corresponding bucket of its own B(s), up to an
implementation-defined total cap.

One-per-distance keeps responses compact and spreads coverage across
the requester's free buckets rather than overrepresenting a single
distance.

Companion to the wire-spec definition of the topic-distance list in
REGTOPIC and TOPICQUERY.
@srene srene force-pushed the feat/discv5-theory-disc-ng-clarifications branch from 2888575 to c3a6007 Compare May 15, 2026 09:57
@srene srene merged commit 234d8a0 into master May 15, 2026
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