1
0
Fork 0
forked from forks/go-ethereum

core/txpool: demote error log to warn (#31332)

This error log in `legacypool.go` isn't necessary, since even though the
behavior is unexpected, it is handled correctly. A discussion on issue
#22301 concluded that this should instead be a warning log.
This commit is contained in:
Austin Larson 2025-03-11 11:00:50 -04:00 committed by GitHub
parent 4cdd7c8631
commit 49ef375033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1604,7 +1604,7 @@ func (pool *LegacyPool) demoteUnexecutables() {
gapped := list.Cap(0)
for _, tx := range gapped {
hash := tx.Hash()
log.Error("Demoting invalidated transaction", "hash", hash)
log.Warn("Demoting invalidated transaction", "hash", hash)
// Internal shuffle shouldn't touch the lookup set.
pool.enqueueTx(hash, tx, false)