We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11404ad commit bb83d8aCopy full SHA for bb83d8a
crates/transaction-pool/src/pool/best.rs
@@ -49,7 +49,8 @@ impl<T: TransactionOrdering> Iterator for BestTransactions<T> {
49
fn next(&mut self) -> Option<Self::Item> {
50
loop {
51
// Remove the next independent tx with the highest priority
52
- let best = self.independent.pop_last()?;
+ let best = self.independent.iter().next_back()?.clone();
53
+ let best = self.independent.take(&best)?;
54
let hash = best.transaction.hash();
55
56
// skip transactions that were marked as invalid
0 commit comments