mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
This reverts commit bdf41d39a8.
This commit is contained in:
@ -49,7 +49,8 @@ impl<T: TransactionOrdering> Iterator for BestTransactions<T> {
|
|||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
loop {
|
loop {
|
||||||
// Remove the next independent tx with the highest priority
|
// Remove the next independent tx with the highest priority
|
||||||
let best = self.independent.pop_last()?;
|
let best = self.independent.iter().next_back()?.clone();
|
||||||
|
let best = self.independent.take(&best)?;
|
||||||
let hash = best.transaction.hash();
|
let hash = best.transaction.hash();
|
||||||
|
|
||||||
// skip transactions that were marked as invalid
|
// skip transactions that were marked as invalid
|
||||||
|
|||||||
Reference in New Issue
Block a user