mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix: update highest nonce if highest nonce (#6618)
This commit is contained in:
@ -340,9 +340,10 @@ impl<T: TransactionOrdering> PendingPool<T> {
|
||||
self.independent_transactions.remove(&tx);
|
||||
|
||||
// switch out for the next ancestor if there is one
|
||||
self.highest_nonces.remove(&tx);
|
||||
if let Some(ancestor) = self.ancestor(id) {
|
||||
self.highest_nonces.insert(ancestor.clone());
|
||||
if self.highest_nonces.remove(&tx) {
|
||||
if let Some(ancestor) = self.ancestor(id) {
|
||||
self.highest_nonces.insert(ancestor.clone());
|
||||
}
|
||||
}
|
||||
Some(tx.transaction)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user