Merge pull request #553 from terenc3t/patch-43

Comments for get_next_epoch_committee_count
This commit is contained in:
Danny Ryan 2019-02-01 21:12:05 -08:00 committed by GitHub
commit 4d44b7c5a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -821,6 +821,9 @@ def get_current_epoch_committee_count(state: BeaconState) -> int:
```python ```python
def get_next_epoch_committee_count(state: BeaconState) -> int: def get_next_epoch_committee_count(state: BeaconState) -> int:
"""
Return the number of committees in the next epoch of the given ``state``.
"""
next_active_validators = get_active_validator_indices( next_active_validators = get_active_validator_indices(
state.validator_registry, state.validator_registry,
get_current_epoch(state) + 1, get_current_epoch(state) + 1,