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

Discv5 support #6151

Closed
wants to merge 211 commits into from
Closed

Discv5 support #6151

wants to merge 211 commits into from

Conversation

emhane
Copy link
Member

@emhane emhane commented Jan 21, 2024

since we import rust discv5 from sigp, this pr modifies the discv4 code. discv4 now drops nodes in Neighbours responses that are already connected in discv5. it verifies this by access to a mirror of keys in discv5's kbuckets, that is updated, if needed, when discv4 receives a Neighbours message. the goal is to ensure any two nodes are connected over discv5 xor discv4, preferring discv5. nodes are identified by their node id, so to make this possible, nodes use the same secret key in discv4 and discv5. closes #1383.

also moves poll function in Discovery impl to Stream impl for Discovery.

@emhane emhane marked this pull request as draft January 21, 2024 18:38
crates/net/discv5/src/lib.rs Outdated Show resolved Hide resolved
@emhane emhane mentioned this pull request Mar 30, 2024
@emhane
Copy link
Member Author

emhane commented Apr 4, 2024

decomposed into #7446, #7394 and #7328

@emhane emhane closed this Apr 4, 2024
@emhane emhane deleted the emhane/discv5-support branch April 10, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devp2p Related to the Ethereum P2P protocol A-discv5 Related to discv5 discovery A-networking Related to networking in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

discv5 support
4 participants