mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
no need to hash it again (#13261)
This commit is contained in:
parent
ce2344301c
commit
705e98e3c3
@ -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++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user