Merge pull request #569 from tarasbob/master

Fix get_total_balance()
This commit is contained in:
Hsiao-Wei Wang 2019-02-04 16:45:18 +08:00 committed by GitHub
commit ecad0212e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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`