-
-
Notifications
You must be signed in to change notification settings - Fork 289
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: no state in cache for finalized checkpoint state #6620
fix: no state in cache for finalized checkpoint state #6620
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #6620 +/- ##
============================================
+ Coverage 61.61% 61.69% +0.08%
============================================
Files 556 556
Lines 58567 58820 +253
Branches 1859 1887 +28
============================================
+ Hits 36084 36287 +203
- Misses 22442 22492 +50
Partials 41 41 |
Performance Report✔️ no performance regression detected Full benchmark results
|
e2e tests passed, ready for review |
packages/beacon-node/src/chain/stateCache/persistentCheckpointsCache.ts
Outdated
Show resolved
Hide resolved
packages/beacon-node/test/e2e/chain/stateCache/nHistoricalStates.test.ts
Outdated
Show resolved
Hide resolved
packages/beacon-node/test/e2e/chain/stateCache/nHistoricalStates.test.ts
Show resolved
Hide resolved
Looks good overall. Minor comments |
@@ -652,7 +652,7 @@ export class PersistentCheckpointStateCache implements CheckpointStateCache { | |||
const prevEpochRoot = toHexString(getBlockRootAtSlot(state, epochBoundarySlot - 1)); | |||
|
|||
// for each epoch, usually there are 2 rootHexes respective to the 2 checkpoint states: Previous Root Checkpoint State and Current Root Checkpoint State | |||
const cpRootHexes = new Set(this.epochIndex.get(epoch) ?? []); |
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.
@matthewkeil this addressed your comment during offline review
🎉 This PR is included in v1.18.0 🎉 |
Motivation
Description
part of #5968