core: fix the order of address in queue (#24907)
reverse the order of address in queue
This commit is contained in:
parent
4fb1e9d25a
commit
b051dc60dd
@ -1529,7 +1529,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 New Issue
Block a user