fix(txpool): emit events on discarding worst txs (#4101)

This commit is contained in:
Roman Krasiuk
2023-08-07 22:38:25 +03:00
committed by GitHub
parent 5cc3db9932
commit 40230e74f4

View File

@@ -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