diff --git a/crates/transaction-pool/src/pool/mod.rs b/crates/transaction-pool/src/pool/mod.rs index a07565b7ca..93003431c5 100644 --- a/crates/transaction-pool/src/pool/mod.rs +++ b/crates/transaction-pool/src/pool/mod.rs @@ -377,6 +377,9 @@ where return added } + let mut listener = self.event_listener.write(); + discarded.iter().for_each(|tx| listener.discarded(tx)); + // It may happen that a newly added transaction is immediately discarded, so we need to // adjust the result here added