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

cache the mapping of addr to node in v5_udp #31075

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thinkAfCod
Copy link

  1. Add caching to discv5 to improve the efficiency of node lookup.

    • The number of nodes maintained in the tab is relatively small.
    • Each time a node is found in the local memdb, it needs to be decoded again.
  2. The GetNode method has been made public, making it easier for other modules to access the node information maintained in discv5.

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