-
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
eip-7251: Updated initiate_validator_exit #13974
Conversation
c5413df
to
38008b1
Compare
if churn >= currentChurn { | ||
exitQueueEpoch, err = exitQueueEpoch.SafeAdd(1) | ||
// Compute exit queue epoch. | ||
if s.Version() <= version.Deneb { |
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.
we have been doing s.Version() < version.Electra in most other places
38008b1
to
93266d0
Compare
eip-7251: tests for initiate_validator_exit
93266d0
to
cb28e0b
Compare
@@ -43,49 +45,65 @@ func MaxExitEpochAndChurn(s state.BeaconState) (maxExitEpoch primitives.Epoch, c | |||
|
|||
// InitiateValidatorExit takes in validator index and updates | |||
// validator with correct voluntary exit parameters. | |||
// Note: As of Electra, the exitQueueEpoch and churn parameters are unused. |
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.
good note
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.
LGTM
…3974) eip-7251: tests for initiate_validator_exit
eip-7251: tests for initiate_validator_exit
What type of PR is this?
Feature
What does this PR do? Why is it needed?
Extracted from #13903
Which issues(s) does this PR fix?
Tracking @ #13849
Other notes for review
See: https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.2/specs/electra/beacon-chain.md#updated--initiate_validator_exit