Changeset View
Changeset View
Standalone View
Standalone View
src/zmq/zmqnotificationinterface.h
Show All 20 Lines | public: | ||||
static CZMQNotificationInterface *Create(); | static CZMQNotificationInterface *Create(); | ||||
protected: | protected: | ||||
bool Initialize(); | bool Initialize(); | ||||
void Shutdown(); | void Shutdown(); | ||||
// CValidationInterface | // CValidationInterface | ||||
void TransactionAddedToMempool(const CTransactionRef &tx) override; | void TransactionAddedToMempool(const CTransactionRef &tx) override; | ||||
void | void BlockConnected(const std::shared_ptr<const CBlock> &pblock, | ||||
BlockConnected(const std::shared_ptr<const CBlock> &pblock, | const CBlockIndex *pindexConnected) override; | ||||
const CBlockIndex *pindexConnected, | |||||
const std::vector<CTransactionRef> &vtxConflicted) override; | |||||
void BlockDisconnected(const std::shared_ptr<const CBlock> &pblock, | void BlockDisconnected(const std::shared_ptr<const CBlock> &pblock, | ||||
const CBlockIndex *pindexDisconnected) override; | const CBlockIndex *pindexDisconnected) override; | ||||
void UpdatedBlockTip(const CBlockIndex *pindexNew, | void UpdatedBlockTip(const CBlockIndex *pindexNew, | ||||
const CBlockIndex *pindexFork, | const CBlockIndex *pindexFork, | ||||
bool fInitialDownload) override; | bool fInitialDownload) override; | ||||
private: | private: | ||||
CZMQNotificationInterface(); | CZMQNotificationInterface(); | ||||
void *pcontext; | void *pcontext; | ||||
std::list<CZMQAbstractNotifier *> notifiers; | std::list<CZMQAbstractNotifier *> notifiers; | ||||
}; | }; | ||||
extern CZMQNotificationInterface *g_zmq_notification_interface; | extern CZMQNotificationInterface *g_zmq_notification_interface; | ||||
#endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H | #endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H |