Update beacon-chain.md

This commit is contained in:
vbuterin 2018-10-18 15:47:54 -04:00 committed by GitHub
parent b4b60ae16a
commit 3e57bd5266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ Here's a diagram of what's going on:
We also make a function for generating persistent committees:
```python
def get_persistent_shuffling(validators: List[ValidatorRecord], seed: Hash32):
def get_persistent_shuffling(validators: List[ValidatorRecord], seed: Hash32) -> List[List[int]]:
active_validators = get_active_validator_indices(validators)
shuffled_active_validator_indices = shuffle(active_validators, seed)
return split(shuffled_active_validator_indices, SHARD_COUNT)