Skip to content

Commit

Permalink
delete on error
Browse files Browse the repository at this point in the history
  • Loading branch information
rkapka committed Feb 28, 2025
1 parent 23bbf23 commit 07f0d5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beacon-chain/operations/attestations/kv/unaggregated.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ func (c *AttCaches) DeleteSeenUnaggregatedAttestations() (int, error) {
seen, err := c.hasSeenBit(att)
if err != nil {
log.WithError(err).Debug("Could not check if attestations bits have been seen")
delete(c.unAggregatedAtt, r)
count++
}
if seen {
delete(c.unAggregatedAtt, r)
Expand Down

0 comments on commit 07f0d5e

Please sign in to comment.