mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-20 22:38:11 +00:00
use aggregate.data
instead of hust data
This commit is contained in:
parent
7117d2e75a
commit
adced70c54
@ -195,7 +195,7 @@ def get_best_light_client_aggregate(block: BeaconBlock,
|
||||
aggregates: Sequence[LightClientVote]) -> LightClientVote:
|
||||
viable_aggregates = [
|
||||
aggregate for aggregate in aggregates
|
||||
if aggregate.slot == compute_previous_slot(block.slot) and aggregate.beacon_block_root == block.parent_root
|
||||
if aggregate.data.slot == compute_previous_slot(block.slot) and aggregate.data.beacon_block_root == block.parent_root
|
||||
]
|
||||
|
||||
return max(
|
||||
|
Loading…
x
Reference in New Issue
Block a user