From adced70c5425adee09ddf9b09cf2731ed5c6ccdd Mon Sep 17 00:00:00 2001 From: ericsson Date: Thu, 18 Jun 2020 02:04:16 +0300 Subject: [PATCH 1/2] use `aggregate.data` instead of hust `data` --- specs/phase1/validator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/phase1/validator.md b/specs/phase1/validator.md index 558a1b3bf..15596edc6 100644 --- a/specs/phase1/validator.md +++ b/specs/phase1/validator.md @@ -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( From e479e964808e771f2aeb7ede747aa137845f119a Mon Sep 17 00:00:00 2001 From: ericsson Date: Thu, 18 Jun 2020 02:46:06 +0300 Subject: [PATCH 2/2] lint fix --- specs/phase1/validator.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specs/phase1/validator.md b/specs/phase1/validator.md index 15596edc6..ea69f0389 100644 --- a/specs/phase1/validator.md +++ b/specs/phase1/validator.md @@ -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.data.slot == compute_previous_slot(block.slot) and aggregate.data.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(