mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 11:44:41 +00:00
Minor fix
This commit is contained in:
parent
8ae7f5b6fa
commit
bd9f983eea
@ -938,7 +938,7 @@ def get_indices_from_committee(
|
|||||||
committee: List[ValidatorIndex, MAX_VALIDATORS_PER_COMMITTEE],
|
committee: List[ValidatorIndex, MAX_VALIDATORS_PER_COMMITTEE],
|
||||||
bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE]) -> Sequence[ValidatorIndex]:
|
bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE]) -> Sequence[ValidatorIndex]:
|
||||||
assert len(bits) == len(committee)
|
assert len(bits) == len(committee)
|
||||||
return ([validator_index for i, validator_index in enumerate(committee) if bits[i]])
|
return [validator_index for i, validator_index in enumerate(committee) if bits[i]]
|
||||||
```
|
```
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
Loading…
x
Reference in New Issue
Block a user