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
Add assertions for the head and finality #4573
Add assertions for the head and finality #4573
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
packages/beacon-node/src/chain/opPools/aggregatedAttestationPool.ts
Outdated
Show resolved
Hide resolved
@@ -428,7 +428,8 @@ export function isValidAttestationData( | |||
if (!ssz.phase0.Checkpoint.equals(data.source, justifiedCheckpoint)) return false; | |||
|
|||
// Shuffling can't have changed if we're in the first few epochs | |||
if (stateEpoch < 2) { | |||
// Also we can't look back 2 epochs if target epoch is 1 or less | |||
if (stateEpoch < 2 || targetEpoch < 2) { |
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.
The following issue #4547 is fixed with above change.
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.
@nazarhussain the simulation tests look great!
Motivation
Add assertions for the head and finality tracking per slot.
Resolves #4276, Closes: #4547