mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 11:44:41 +00:00
fixed get_active_validator_indices typo (#126)
* get_active_validator_indices fixes * add a newline
This commit is contained in:
parent
6034dbf4ff
commit
2a1150e5b8
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user