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