Skip to content

Commit

Permalink
Merge pull request #1682 from ethereum/reward-acc-bug
Browse files Browse the repository at this point in the history
Attestation reward bug
  • Loading branch information
djrtwo committed Mar 25, 2020
2 parents b0df824 + 1c49f99 commit b8d25dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/phase0/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ def get_attestation_deltas(state: BeaconState) -> Tuple[Sequence[Gwei], Sequence
if index in unslashed_attesting_indices:
increment = EFFECTIVE_BALANCE_INCREMENT # Factored out from balance totals to avoid uint64 overflow
reward_numerator = get_base_reward(state, index) * (attesting_balance // increment)
rewards[index] = reward_numerator // (total_balance // increment)
rewards[index] += reward_numerator // (total_balance // increment)
else:
penalties[index] += get_base_reward(state, index)

Expand Down

0 comments on commit b8d25dc

Please sign in to comment.