-
Notifications
You must be signed in to change notification settings - Fork 810
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
Store pubkey cache decompressed on disk #5897
Conversation
420a715
to
2579248
Compare
Ready for review for 5.3.0. Let's goooo 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me as is! Love it how straightforward it is.
I feel we could drop from the cache the need to compute and store compressed keys. Those are available on any state and seem to be used exclusively for sync committees.
Good idea. We can look into that in a future PR, maybe alongside consolidating the pubkey cache on the beacon state with the global one |
There's something wrong with this PR and I haven't worked out what. I'm getting an error about the op pool being corrupt?
This would suggest the v20 migration is screwed, but in isolation the v20 migration works fine |
2579248
to
cc5789b
Compare
This reverts commit cc5789b.
The bug was in the v20 migration as suspected: |
It's working, but I don't see
It is running normally afterwards |
Oh that was a log I added when debugging this PR, and then reverted (because the same commit added some asserts). I'll re-add it Thanks for testing! |
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at d84e3e3 |
Issue Addressed
Closes:
Proposed Changes
Resolve a long-standing performance pitfall involving the decompression of pubkeys on startup. This PR improves Lighthouse's startup time dramastically.
Additional Info
I propose we merge this PR as the first DB schema change adopted from
tree-states
, after the Electra PR which implements v20 is merged:Blocked on a fix to the v20 schema: