From 1c49f99094f3796ecd2d8ebf060b41c585292d35 Mon Sep 17 00:00:00 2001
From: Michael Sproul <micsproul@gmail.com>
Date: Tue, 24 Mar 2020 17:15:40 +1100
Subject: [PATCH] Fix bug in attestation reward calculation

---
 specs/phase0/beacon-chain.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/specs/phase0/beacon-chain.md b/specs/phase0/beacon-chain.md
index 45a7df3d9..23fa5ceee 100644
--- a/specs/phase0/beacon-chain.md
+++ b/specs/phase0/beacon-chain.md
@@ -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)