Skip to content

Commit

Permalink
(BIDS-2434) Fixed wrong attesterSlot usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisei24 committed Sep 5, 2023
1 parent 95e164e commit 794916c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ func (bigtable *Bigtable) GetValidatorAttestationHistory(validators []uint64, st
}

missedSlotsCount := uint64(0)
for slot := currentAttInfo.AttesterSlot + 1; slot < currentAttInfo.InclusionSlot; slot++ {
for slot := attesterSlot + 1; slot < currentAttInfo.InclusionSlot; slot++ {
if missedSlotsMap[slot] || orphanedSlotsMap[slot] {
missedSlotsCount++
}
Expand Down

0 comments on commit 794916c

Please sign in to comment.