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

WIP: validator set persistence #200

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

pk910
Copy link
Member

@pk910 pk910 commented Dec 18, 2024

This PR adds a validators table to the db and persists the finalized validator set there.

The validator cache is responsible for writing and updating validator entries.
It uses a batched approach for mass updates to keep the db load manageable.

This PR touches a lot of code as the validator set accessors changed.
Instead of fetching the full validator set and doing filtering/aggregation logic in the page handlers, the page handlers will now only fetch a filtered subset of the validator set.

This PR should significantly lower the memory consumption of dora when running in a network with large validator sets (holesky, mainnet)

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