Skip to content

Commit 8e8562b

Browse files
alarso16howjmay
authored andcommitted
core/txpool: demote error log to warn (ethereum#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 ethereum#22301 concluded that this should instead be a warning log.
1 parent a14ff11 commit 8e8562b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/txpool/legacypool/legacypool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ func (pool *LegacyPool) demoteUnexecutables() {
16041604
gapped := list.Cap(0)
16051605
for _, tx := range gapped {
16061606
hash := tx.Hash()
1607-
log.Error("Demoting invalidated transaction", "hash", hash)
1607+
log.Warn("Demoting invalidated transaction", "hash", hash)
16081608

16091609
// Internal shuffle shouldn't touch the lookup set.
16101610
pool.enqueueTx(hash, tx, false)

0 commit comments

Comments
 (0)