Merge pull request #394 from ralexstokes/fix-update-validator-registry-fn

Remove dangling `return` statement from spec function
This commit is contained in:
Danny Ryan 2019-01-03 21:46:34 -07:00 committed by GitHub
commit d360330f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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))) validators_to_penalize = filter(to_penalize, range(len(validator_registry)))
for index in validators_to_penalize: for index in validators_to_penalize:
state.validator_balances[index] -= get_effective_balance(state, index) * min(total_penalties * 3, total_balance) // total_balance 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: Also perform the following updates: