Currently the only zmq notifications that exist for transactions are for:
- Entry into mempool
- Appearance in blocks
- Disconnect from block
For mempool-tracking purposes, it’s useful to know when transactions are being dropped from the local mempool without relying on a tight polling loop. This notification publishes anytime a transaction is removed from the mempool, aside from the case where it is confirmed in the new incoming block(already published in 2 above).
Based on #19507
Additional test cases that could be added:
- block conflict
- mempool timeout
- mempool trim to size