mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-22 19:08:07 +00:00
Merge pull request #24908 from zhaochonghe/master
core: fix the order of address in queue
This commit is contained in:
commit
a35a5cad22
1 changed files with 1 additions and 1 deletions
|
|
@ -1476,7 +1476,7 @@ func (pool *TxPool) truncateQueue() {
|
|||
addresses = append(addresses, addressByHeartbeat{addr, pool.beats[addr]})
|
||||
}
|
||||
}
|
||||
sort.Sort(addresses)
|
||||
sort.Sort(sort.Reverse(addresses))
|
||||
|
||||
// Drop transactions until the total is below the limit or only locals remain
|
||||
for drop := queued - pool.config.GlobalQueue; drop > 0 && len(addresses) > 0; {
|
||||
|
|
|
|||
Loading…
Reference in a new issue