Skip to content

Commit

Permalink
Merge pull request #1910 from ericsson49/fix_get_best_light_client_ag…
Browse files Browse the repository at this point in the history
…gregate

Fix exception in `get_best_light_client_aggregate`
  • Loading branch information
protolambda authored Jun 18, 2020
2 parents 7117d2e + e479e96 commit 3d544d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion specs/phase1/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ 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 3d544d5

Please sign in to comment.