diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index 9737d6cdc7..2d4298d726 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -1721,6 +1721,9 @@ func (p *BlobPool) DropTransactions() { p.lock.Lock() defer p.lock.Unlock() + // manually iterating and deleting every entry is super sub-optimal + // However, DropTransactions is not currently used in production so + // performance is not critical at the moment. for _, entry := range p.lookup { if err := p.store.Delete(entry); err != nil { log.Warn("failed to delete blob tx from backing store", "err", err)