core/txpool/legacypool: refactor truncatePending

This commit is contained in:
Marius van der Wijden 2025-04-25 16:08:52 +02:00
parent 27725c46af
commit a87efdb24c

View file

@ -1502,7 +1502,7 @@ func (pool *LegacyPool) truncatePending() {
length := uint64(list.Len())
pending += length
if length > pool.config.AccountSlots {
spammers.Push(addr, uint64(length))
spammers.Push(addr, length)
}
}
if pending <= pool.config.GlobalSlots {