Remove dangling `return` statement from spec function

This function declares that it returns `None` and instead directly mutates the
state.

There is a dangling return statement that this commit deletes.
This commit is contained in:
Alex Stokes 2019-01-03 19:42:07 -06:00
parent 78e73633bc
commit 19a9582a48
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086
1 changed files with 0 additions and 2 deletions

View File

@ -1759,8 +1759,6 @@ def update_validator_registry(state: BeaconState) -> None:
validators_to_penalize = filter(to_penalize, range(len(validator_registry)))
for index in validators_to_penalize:
state.validator_balances[index] -= get_effective_balance(state, index) * min(total_penalties * 3, total_balance) // total_balance
return validator_registry, latest_penalized_exit_balances, validator_registry_delta_chain_tip
```
Also perform the following updates: