Fix typo from earlier renaming in #534.

This commit is contained in:
Alex Stokes 2019-02-19 15:07:30 -07:00
parent a3d85c8405
commit 8262ce1cc0
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086
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[index] -= whistleblower_reward
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`