mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 06:25:05 -05:00
Fix get_total_balance()
This commit is contained in:
@@ -1049,7 +1049,7 @@ def get_total_balance(state: BeaconState, validators: List[ValidatorIndex]) -> G
|
||||
"""
|
||||
Return the combined effective balance of an array of validators.
|
||||
"""
|
||||
sum([get_effective_balance(state, i) for i in validators])
|
||||
return sum([get_effective_balance(state, i) for i in validators])
|
||||
```
|
||||
|
||||
### `get_fork_version`
|
||||
|
||||
Reference in New Issue
Block a user