Fixed exit epoch conditional

This commit is contained in:
vbuterin 2019-03-30 19:26:44 -05:00 committed by GitHub
parent a2dae9a8e0
commit 15498f22ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -1390,7 +1390,6 @@ 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