mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
core/txpool/legacypool: refactor truncatePending
This commit is contained in:
parent
27725c46af
commit
a87efdb24c
1 changed files with 1 additions and 1 deletions
|
|
@ -1502,7 +1502,7 @@ func (pool *LegacyPool) truncatePending() {
|
||||||
length := uint64(list.Len())
|
length := uint64(list.Len())
|
||||||
pending += length
|
pending += length
|
||||||
if length > pool.config.AccountSlots {
|
if length > pool.config.AccountSlots {
|
||||||
spammers.Push(addr, uint64(length))
|
spammers.Push(addr, length)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if pending <= pool.config.GlobalSlots {
|
if pending <= pool.config.GlobalSlots {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue