Merge pull request #715 from terenc3t/patch-53

Update get_total_balance comment
This commit is contained in:
Danny Ryan 2019-03-04 09:49:13 -07:00 committed by GitHub
commit 5ac8b1ed64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ def get_effective_balance(state: State, index: ValidatorIndex) -> Gwei:
```python ```python
def get_total_balance(state: BeaconState, validators: List[ValidatorIndex]) -> Gwei: def get_total_balance(state: BeaconState, validators: List[ValidatorIndex]) -> Gwei:
""" """
Return the combined effective balance of an array of validators. Return the combined effective balance of an array of ``validators``.
""" """
return sum([get_effective_balance(state, i) for i in validators]) return sum([get_effective_balance(state, i) for i in validators])
``` ```