From 66403ad8532bae73bce9ce17d1eaeffb77cddf6c Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 30 Apr 2019 11:00:23 +0100 Subject: [PATCH] Update 0_beacon-chain.md --- specs/core/0_beacon-chain.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 6a4edb8a3..e85eafc23 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1459,8 +1459,7 @@ def get_attestation_deltas(state: BeaconState) -> Tuple[List[Gwei], List[Gwei]]: for index in get_unslashed_attesting_indices(state, matching_source_attestations): earliest_attestation = get_earliest_attestation(state, matching_source_attestations, index) rewards[earliest_attestation.proposer_index] += get_base_reward(state, index) // PROPOSER_REWARD_QUOTIENT - attestation_slot = get_attestation_slot(state, earliest_attestation) - inclusion_delay = earliest_attestation.inclusion_slot - attestation_slot + inclusion_delay = earliest_attestation.inclusion_slot - get_attestation_slot(state, earliest_attestation) rewards[index] += get_base_reward(state, index) * MIN_ATTESTATION_INCLUSION_DELAY // inclusion_delay # Inactivity penalty @@ -1745,9 +1744,8 @@ def process_attestation(state: BeaconState, attestation: Attestation) -> None: Process ``Attestation`` operation. Note that this function mutates ``state``. """ - attestation_slot = get_attestation_slot(state, attestation) min_slot = state.slot - SLOTS_PER_EPOCH if get_current_epoch(state) > GENESIS_EPOCH else GENESIS_SLOT - assert min_slot <= attestation_slot <= state.slot - MIN_ATTESTATION_INCLUSION_DELAY + assert min_slot <= get_attestation_slot(state, attestation) <= state.slot - MIN_ATTESTATION_INCLUSION_DELAY # Check target epoch, source epoch, source root, and source crosslink data = attestation.data