mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 00:58:11 -05:00
fix(txpool): emit events on discarding worst txs (#4101)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user