From 6318a21ca6d721ed3bc58d6903a34a908e4a5b80 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Fri, 3 May 2019 10:34:16 -0600 Subject: [PATCH] fix minor typo in attestation rewards --- specs/core/0_beacon-chain.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 56f11bc7f5..e56fd976cc 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1427,7 +1427,8 @@ def get_attestation_deltas(state: BeaconState) -> Tuple[List[Gwei], List[Gwei]]: # Proposer and inclusion delay micro-rewards for index in get_unslashed_attesting_indices(state, matching_source_attestations): attestation = min([ - a for a in attestations if index in get_attesting_indices(state, a.data, a.aggregation_bitfield) + a for a in matching_source_attestations + if index in get_attesting_indices(state, a.data, a.aggregation_bitfield) ], key=lambda a: a.inclusion_delay) rewards[attestation.proposer_index] += get_base_reward(state, index) // PROPOSER_REWARD_QUOTIENT rewards[index] += get_base_reward(state, index) * MIN_ATTESTATION_INCLUSION_DELAY // attestation.inclusion_delay