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

fix: temporarily skip caching non-portal nodes in discovery #1379

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

njgheorghita
Copy link
Collaborator

What was wrong?

Temporary solution to validate the theory that eth2 nodes are overflowing the node_addr_cache on mainnet. Once the theory is validated/invalidated, this solution will be replaced with a more sustainable solution, since this solution will result in the exact same issue once the total number of portal nodes on the network exceeds current cache size.

How was it fixed?

  • only cache enrs that have a "c" enr key - indicating that they are participating in the portal network

To-Do

@njgheorghita njgheorghita marked this pull request as ready for review August 13, 2024 20:56
Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

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

:shipit:

@njgheorghita njgheorghita merged commit e3b12f3 into ethereum:master Aug 13, 2024
8 checks passed
@njgheorghita njgheorghita deleted the node-addr-cache branch August 13, 2024 22:56
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