mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-26 09:15:17 +00:00
fix typo with get_attestation_participants
This commit is contained in:
parent
85d6082990
commit
2c25ed9062
@ -1010,7 +1010,7 @@ def get_beacon_proposer_index(state: BeaconState,
|
|||||||
#### `merkle_root`
|
#### `merkle_root`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def merkle_root(values):
|
def merkle_root(values: [hash32]) -> hash32:
|
||||||
"""
|
"""
|
||||||
Merkleize ``values`` (where ``len(values)`` is a power of two) and return the Merkle root.
|
Merkleize ``values`` (where ``len(values)`` is a power of two) and return the Merkle root.
|
||||||
"""
|
"""
|
||||||
@ -1033,7 +1033,7 @@ def get_attestation_participants(state: BeaconState,
|
|||||||
# Find the committee in the list with the desired shard
|
# Find the committee in the list with the desired shard
|
||||||
crosslink_committees = get_crosslink_committees_at_slot(state, attestation_data.slot)
|
crosslink_committees = get_crosslink_committees_at_slot(state, attestation_data.slot)
|
||||||
|
|
||||||
assert attestation.shard in [shard for _, shard in crosslink_committees]
|
assert attestation_data.shard in [shard for _, shard in crosslink_committees]
|
||||||
crosslink_committee = [committee for committee, shard in crosslink_committees if shard == attestation_data.shard][0]
|
crosslink_committee = [committee for committee, shard in crosslink_committees if shard == attestation_data.shard][0]
|
||||||
assert len(participation_bitfield) == (len(committee) + 7) // 8
|
assert len(participation_bitfield) == (len(committee) + 7) // 8
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user