Skip to content

Commit

Permalink
Fix sync_committee rewards to return no data on non-participation (#1…
Browse files Browse the repository at this point in the history
…2302)

The Beacon API specs say (rather not clearly, but still), that on
non-participation of a validator in an epoch, no data should be
returned.

See ethereum/beacon-APIs#480
  • Loading branch information
errge authored Oct 18, 2024
1 parent eb5b145 commit 4d6c799
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cl/beacon/handler/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@ func (a *ApiHandler) PostEthV1BeaconRewardsSyncCommittees(w http.ResponseWriter,
}
// validator index -> accumulated rewards
accumulatedRewards := map[uint64]int64{}
for _, idx := range filterIndicies {
accumulatedRewards[idx] = 0
}
participantReward := int64(a.syncParticipantReward(totalActiveBalance))

for committeeIdx, v := range committee {
Expand Down

0 comments on commit 4d6c799

Please sign in to comment.