Merge pull request #656 from ralexstokes/typo-exit-length

Fix typo from earlier renaming in #534.
This commit is contained in:
Danny Ryan 2019-02-19 15:44:45 -07:00 committed by GitHub
commit 7f528a5082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1352,7 +1352,7 @@ def slash_validator(state: BeaconState, index: ValidatorIndex) -> None:
state.validator_balances[whistleblower_index] += whistleblower_reward state.validator_balances[whistleblower_index] += whistleblower_reward
state.validator_balances[index] -= whistleblower_reward state.validator_balances[index] -= whistleblower_reward
validator.slashed_epoch = get_current_epoch(state) validator.slashed_epoch = get_current_epoch(state)
validator.withdrawable_epoch = get_current_epoch(state) + LATEST_PENALIZED_EXIT_LENGTH validator.withdrawable_epoch = get_current_epoch(state) + LATEST_SLASHED_EXIT_LENGTH
``` ```
#### `prepare_validator_for_withdrawal` #### `prepare_validator_for_withdrawal`