mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 01:54:59 -05:00
Fixed exit epoch conditional
This commit is contained in:
@@ -1390,9 +1390,8 @@ def initiate_validator_exit(state: BeaconState, index: ValidatorIndex) -> None:
|
||||
state.exit_queue_filled = 0
|
||||
|
||||
# Set validator exit epoch and withdrawable epoch
|
||||
if validator.exit_epoch > state.exit_epoch:
|
||||
validator.exit_epoch = state.exit_epoch
|
||||
validator.withdrawable_epoch = validator.exit_epoch + MIN_VALIDATOR_WITHDRAWABILITY_DELAY
|
||||
validator.exit_epoch = state.exit_epoch
|
||||
validator.withdrawable_epoch = validator.exit_epoch + MIN_VALIDATOR_WITHDRAWABILITY_DELAY
|
||||
|
||||
# Extend queue
|
||||
state.exit_queue_filled += 1
|
||||
|
||||
Reference in New Issue
Block a user