Update core/txpool/blobpool/limbo.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
maskpp 2026-01-22 22:21:12 +08:00 committed by GitHub
parent 3970e5e868
commit 188a7c5f2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,8 +261,8 @@ func (l *limbo) getAndDrop(id uint64) (*limboBlob, error) {
// drop removes the blob metadata from the limbo.
func (l *limbo) drop(txhash common.Hash) error {
if item, ok := l.index[txhash]; ok {
// Retrieve the old blobs from the data store and write them back with a new
// block number. IF anything fails, there's not much to do, go on.
// Remove the blob metadata entry from the limbo store. If anything fails,
// there's not much to do besides logging the error and returning.
if err := l.store.Delete(item.id); err != nil {
log.Error("Failed to drop old limboed blobs", "tx", txhash, "err", err)
return err