Skip to content

Commit

Permalink
fixed get_active_validator_indices typo (#126)
Browse files Browse the repository at this point in the history
* get_active_validator_indices fixes

* add a newline
  • Loading branch information
terencechain authored and djrtwo committed Nov 13, 2018
1 parent 6034dbf commit 2a1150e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions specs/beacon-chain.md
Expand Up @@ -328,8 +328,11 @@ The crystallized state recalculation generally focuses on changes to the validat

Below are various helper functions.

The following is a function that gets active validator indices from the validator list:
```python
def get_active_validator_indices(validators)
return [i for i, v in enumerate(validators) if v.status == ACTIVE]
```

The following is a function that shuffles the validator list:

Expand Down

0 comments on commit 2a1150e

Please sign in to comment.