From 0aa922c4e869aeb7e4de8a3826dd8e865d64c45c Mon Sep 17 00:00:00 2001 From: cui Date: Sat, 24 Jan 2026 19:21:47 +0800 Subject: [PATCH] feat: change from stable sort to unstable sort (#21387) --- crates/transaction-pool/src/pool/pending.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/transaction-pool/src/pool/pending.rs b/crates/transaction-pool/src/pool/pending.rs index 8f43493410..a1c1af60b0 100644 --- a/crates/transaction-pool/src/pool/pending.rs +++ b/crates/transaction-pool/src/pool/pending.rs @@ -431,7 +431,7 @@ impl PendingPool { // we prefer removing transactions with lower ordering let mut worst_transactions = self.highest_nonces.values().collect::>(); - 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 {