core/txpool/blobpool: lower log level for warnings (#32142)

- Change the log level to `warning`, during syncing blocks, the `final
== nil` is normal.
- Change to log tx hash.
This commit is contained in:
maskpp 2025-07-07 19:00:34 +08:00 committed by GitHub
parent 90c6197d2f
commit f0741e6dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,7 @@ func (l *limbo) finalize(final *types.Header) {
// Just in case there's no final block yet (network not yet merged, weird // Just in case there's no final block yet (network not yet merged, weird
// restart, sethead, etc), fail gracefully. // restart, sethead, etc), fail gracefully.
if final == nil { if final == nil {
log.Error("Nil finalized block cannot evict old blobs") log.Warn("Nil finalized block cannot evict old blobs")
return return
} }
for block, ids := range l.groups { for block, ids := range l.groups {
@ -139,11 +139,11 @@ func (l *limbo) push(tx *types.Transaction, block uint64) error {
// If the blobs are already tracked by the limbo, consider it a programming // If the blobs are already tracked by the limbo, consider it a programming
// error. There's not much to do against it, but be loud. // error. There's not much to do against it, but be loud.
if _, ok := l.index[tx.Hash()]; ok { if _, ok := l.index[tx.Hash()]; ok {
log.Error("Limbo cannot push already tracked blobs", "tx", tx) log.Error("Limbo cannot push already tracked blobs", "tx", tx.Hash())
return errors.New("already tracked blob transaction") return errors.New("already tracked blob transaction")
} }
if err := l.setAndIndex(tx, block); err != nil { if err := l.setAndIndex(tx, block); err != nil {
log.Error("Failed to set and index limboed blobs", "tx", tx, "err", err) log.Error("Failed to set and index limboed blobs", "tx", tx.Hash(), "err", err)
return err return err
} }
return nil return nil