 |
Bitcoin Core
21.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
6 #define BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
39 std::list<std::unique_ptr<CZMQAbstractNotifier>>
notifiers;
44 #endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
Implement this to subscribe to events generated in validation.
CZMQNotificationInterface()
CZMQNotificationInterface * g_zmq_notification_interface
static CZMQNotificationInterface * Create()
void BlockConnected(const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexConnected) override
Notifies listeners of a block being connected.
std::shared_ptr< const CTransaction > CTransactionRef
void BlockDisconnected(const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexDisconnected) override
Notifies listeners of a block being disconnected.
void TransactionRemovedFromMempool(const CTransactionRef &tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) override
Notifies listeners of a transaction leaving mempool.
void TransactionAddedToMempool(const CTransactionRef &tx, uint64_t mempool_sequence) override
Notifies listeners of a transaction having been added to mempool.
std::list< const CZMQAbstractNotifier * > GetActiveNotifiers() const
MemPoolRemovalReason
Reason why a transaction was removed from the mempool, this is passed to the notification signal.
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
Notifies listeners when the block chain tip advances.
std::list< std::unique_ptr< CZMQAbstractNotifier > > notifiers
The block chain is a tree shaped structure starting with the genesis block at the root,...
virtual ~CZMQNotificationInterface()