Skip to content

Commit

Permalink
use aggregate.data instead of hust data
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsson49 committed Jun 17, 2020
1 parent 7117d2e commit adced70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/phase1/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit adced70

Please sign in to comment.