-
Notifications
You must be signed in to change notification settings - Fork 1k
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 missed exit checks to consolidation processing #14603
base: develop
Are you sure you want to change the base?
Conversation
53d5e21
to
386424c
Compare
@@ -258,6 +265,18 @@ func ProcessConsolidationRequests(ctx context.Context, st state.BeaconState, req | |||
continue | |||
} | |||
|
|||
if curEpoch < srcV.ActivationEpoch+params.BeaconConfig().ShardCommitteePeriod { |
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.
Overflow shouldn't be possible here since we verified that srcV is active, but we could defensively future proof here with an overflow check or math.SafeAdd.
What do you think?
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.
gaz |
hmm tests failing? |
Blocked by new spec tests |
This PR adds a couple of checks that were missing from the consolidation request processing when handling a voluntary exit. These checks are:
reference: ethereum/consensus-specs#4000