Skip to content

Commit

Permalink
Merge pull request #1257 from ethereum/scale-inclusion-reward
Browse files Browse the repository at this point in the history
scale inclusion reward properly
  • Loading branch information
djrtwo authored Jul 1, 2019
2 parents de95f54 + 126591b commit 4ea79ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,11 @@ def get_attestation_deltas(state: BeaconState) -> Tuple[Sequence[Gwei], Sequence
proposer_reward = Gwei(get_base_reward(state, index) // PROPOSER_REWARD_QUOTIENT)
rewards[attestation.proposer_index] += proposer_reward
max_attester_reward = get_base_reward(state, index) - proposer_reward
rewards[index] += Gwei(max_attester_reward * MIN_ATTESTATION_INCLUSION_DELAY // attestation.inclusion_delay)
rewards[index] += Gwei(
max_attester_reward
* (SLOTS_PER_EPOCH + MIN_ATTESTATION_INCLUSION_DELAY - attestation.inclusion_delay)
// SLOTS_PER_EPOCH
)

# Inactivity penalty
finality_delay = previous_epoch - state.finalized_checkpoint.epoch
Expand Down

0 comments on commit 4ea79ee

Please sign in to comment.