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

Upgrade discovery #4185

Merged
merged 8 commits into from
Jul 27, 2021
Merged

Upgrade discovery #4185

merged 8 commits into from
Jul 27, 2021

Conversation

ajsutton
Copy link
Contributor

PR Description

Updates discovery to 0.4.8 which is a significant change to how nodes are stored internally.

Node storage is now entirely based on the KBuckets ensuring that there is an upper bound on the number of nodes stored in memory.
Searching for new nodes now returns the list of nodes which are considered for connection even if they don't fit in the KBuckets.

Recursive search for peers also continuously selects the closest peers to the target, resulting in more effective searches.

Added metric to report the number of tracked live nodes in the discovery buckets.

Fixed Issue(s)

fixes Consensys/discovery#103

Documentation

  • I thought about documentation and added the documentation label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

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

LGTM

@ajsutton ajsutton merged commit 6ed09d8 into Consensys:master Jul 27, 2021
@ajsutton ajsutton deleted the use-found-peers branch July 27, 2021 08:57
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.

Investigate lack of peers reported by MainNet bootnodes
2 participants