Skip to content
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

Merged
merged 1 commit into from
May 9, 2024

Conversation

prestonvanloon
Copy link
Member

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

@prestonvanloon prestonvanloon requested a review from a team as a code owner May 9, 2024 14:32
@prestonvanloon prestonvanloon force-pushed the eip-7251-initiate-validator-exit branch from c5413df to 38008b1 Compare May 9, 2024 14:34
@prestonvanloon prestonvanloon enabled auto-merge May 9, 2024 14:34
if churn >= currentChurn {
exitQueueEpoch, err = exitQueueEpoch.SafeAdd(1)
// Compute exit queue epoch.
if s.Version() <= version.Deneb {
Copy link
Contributor

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

@prestonvanloon prestonvanloon force-pushed the eip-7251-initiate-validator-exit branch from 38008b1 to 93266d0 Compare May 9, 2024 14:56
eip-7251: tests for initiate_validator_exit
@prestonvanloon prestonvanloon force-pushed the eip-7251-initiate-validator-exit branch from 93266d0 to cb28e0b Compare May 9, 2024 14:57
@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good note

Copy link
Contributor

@james-prysm james-prysm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@prestonvanloon prestonvanloon added this pull request to the merge queue May 9, 2024
Merged via the queue into develop with commit 0869814 May 9, 2024
17 checks passed
@prestonvanloon prestonvanloon deleted the eip-7251-initiate-validator-exit branch May 9, 2024 15:42
ErnestK pushed a commit to ErnestK/prysm that referenced this pull request May 19, 2024
nisdas pushed a commit that referenced this pull request Jul 4, 2024
eip-7251: tests for initiate_validator_exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants