Add notifications when transactions enter or leave the mempool.
These can be enabled with zmqpubmempool
:
mempooladded
: a transaction was added to the mempoolmempoolremoved
: a transaction was removed from the mempool
This allows third-party software to keep track of what is in the mempool in real time. For example a mempool monitor I’m working on: It also makes it possible to keep statistics on why transactions disappear from the mempool.
Full documentation: https://github.com/bitcoin/bitcoin/blob/325afe68381d59f1b95a690927c4a8ea886ac791/doc/zmq.md#mempooladd
See individual commits for details.
Current issues:
- Warning
NotifyEntryAdded: WARNING: zmq send failed with code -1
spam in log if “-zmqpubmempool” is not enabled.