mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 20:24:22 +00:00
Fixed exit epoch conditional
This commit is contained in:
parent
a2dae9a8e0
commit
15498f22ef
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user