5 #ifndef BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H 6 #define BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H 31 void BlockConnected(
const std::shared_ptr<const CBlock>& pblock,
const CBlockIndex* pindexConnected,
const std::vector<CTransactionRef>& vtxConflicted)
override;
44 #endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H void TransactionAddedToMempool(const CTransactionRef &tx) override
Notifies listeners of a transaction having been added to mempool.
void BlockConnected(const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexConnected, const std::vector< CTransactionRef > &vtxConflicted) override
Notifies listeners of a block being connected.
std::shared_ptr< const CTransaction > CTransactionRef
Implement this to subscribe to events generated in validation.
static CZMQNotificationInterface * Create()
virtual ~CZMQNotificationInterface()
void BlockDisconnected(const std::shared_ptr< const CBlock > &pblock) override
Notifies listeners of a block being disconnected.
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
Notifies listeners when the block chain tip advances.
std::list< CZMQAbstractNotifier * > notifiers
The block chain is a tree shaped structure starting with the genesis block at the root...
CZMQNotificationInterface * g_zmq_notification_interface
std::list< const CZMQAbstractNotifier * > GetActiveNotifiers() const
CZMQNotificationInterface()