fix call to union
This commit is contained in:
parent
b5f0509595
commit
b36e70040b
|
@ -2010,7 +2010,7 @@ def get_previous_total_balance(state: BeaconState) -> Gwei:
|
||||||
def get_attesting_indices(state: BeaconState, attestations: List[PendingAttestation]) -> List[ValidatorIndex]:
|
def get_attesting_indices(state: BeaconState, attestations: List[PendingAttestation]) -> List[ValidatorIndex]:
|
||||||
output = set()
|
output = set()
|
||||||
for a in attestations:
|
for a in attestations:
|
||||||
output = output.union([get_attestation_participants(state, a.data, a.aggregation_bitfield)])
|
output = output.union(get_attestation_participants(state, a.data, a.aggregation_bitfield))
|
||||||
return sorted(list(output))
|
return sorted(list(output))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue