feat: change from stable sort to unstable sort (#21387)

This commit is contained in:
cui
2026-01-24 19:21:47 +08:00
committed by GitHub
parent ccff9a08f0
commit 0aa922c4e8

View File

@@ -431,7 +431,7 @@ impl<T: TransactionOrdering> PendingPool<T> {
// we prefer removing transactions with lower ordering
let mut worst_transactions = self.highest_nonces.values().collect::<Vec<_>>();
worst_transactions.sort();
worst_transactions.sort_unstable();
// loop through the highest nonces set, removing transactions until we reach the limit
for tx in worst_transactions {