mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
no need to hash it again (#13261)
This commit is contained in:
@@ -121,15 +121,11 @@ func (c *AttCaches) DeleteSeenUnaggregatedAttestations() (int, error) {
|
||||
defer c.unAggregateAttLock.Unlock()
|
||||
|
||||
count := 0
|
||||
for _, att := range c.unAggregatedAtt {
|
||||
for r, att := range c.unAggregatedAtt {
|
||||
if att == nil || helpers.IsAggregated(att) {
|
||||
continue
|
||||
}
|
||||
if seen, err := c.hasSeenBit(att); err == nil && seen {
|
||||
r, err := hashFn(att)
|
||||
if err != nil {
|
||||
return count, errors.Wrap(err, "could not tree hash attestation")
|
||||
}
|
||||
delete(c.unAggregatedAtt, r)
|
||||
count++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user