Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <zmqnotificationinterface.h>
Public Member Functions | |
virtual | ~CZMQNotificationInterface () |
Static Public Member Functions | |
static CZMQNotificationInterface * | Create () |
Protected Member Functions | |
bool | Initialize () |
void | Shutdown () |
void | TransactionAddedToMempool (const CTransactionRef &tx, int64_t nAcceptTime) override |
Notifies listeners of a transaction having been added to mempool. More... | |
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. More... | |
void | BlockDisconnected (const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexDisconnected) override |
Notifies listeners of a block being disconnected. More... | |
void | UpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override |
Notifies listeners of updated block chain tip. More... | |
void | NotifyChainLock (const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) override |
void | NotifyTransactionLock (const CTransaction &tx, const llmq::CInstantSendLock &islock) override |
void | NotifyGovernanceVote (const CGovernanceVote &vote) override |
void | NotifyGovernanceObject (const CGovernanceObject &object) override |
void | NotifyInstantSendDoubleSpendAttempt (const CTransaction ¤tTx, const CTransaction &previousTx) override |
Protected Member Functions inherited from CValidationInterface | |
virtual void | AcceptedBlockHeader (const CBlockIndex *pindexNew) |
virtual void | NotifyHeaderTip (const CBlockIndex *pindexNew, bool fInitialDownload) |
virtual void | SynchronousUpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) |
Same as UpdatedBlockTip, but called from the caller's thread. More... | |
virtual void | TransactionRemovedFromMempool (const CTransactionRef &ptx) |
Notifies listeners of a transaction leaving mempool. More... | |
virtual void | NotifyMasternodeListChanged (bool undo, const CDeterministicMNList &oldMNList, const CDeterministicMNListDiff &diff) |
virtual void | SetBestChain (const CBlockLocator &locator) |
Notifies listeners of the new active block chain on-disk. More... | |
virtual void | ResendWalletTransactions (int64_t nBestBlockTime, CConnman *connman) |
Tells listeners to broadcast their data. More... | |
virtual void | BlockChecked (const CBlock &, const CValidationState &) |
Notifies listeners of a block validation result. More... | |
virtual void | NewPoWValidBlock (const CBlockIndex *pindex, const std::shared_ptr< const CBlock > &block) |
Notifies listeners that a block which builds directly on our current tip has been received and connected to the headers tree, though not validated yet. More... | |
friend | void ::RegisterValidationInterface (CValidationInterface *) |
friend | void ::UnregisterValidationInterface (CValidationInterface *) |
friend | void ::UnregisterAllValidationInterfaces () |
Private Member Functions | |
CZMQNotificationInterface () | |
Private Attributes | |
void * | pcontext |
std::list< CZMQAbstractNotifier * > | notifiers |
Detailed Description
Definition at line 16 of file zmqnotificationinterface.h.
Constructor & Destructor Documentation
◆ ~CZMQNotificationInterface()
|
virtual |
Definition at line 22 of file zmqnotificationinterface.cpp.
References notifiers, and Shutdown().
◆ CZMQNotificationInterface()
|
private |
Definition at line 18 of file zmqnotificationinterface.cpp.
Referenced by Create().
Member Function Documentation
◆ BlockConnected()
|
overrideprotectedvirtual |
Notifies listeners of a block being connected.
Provides a vector of transactions evicted from the mempool as a result.
Called on a background thread.
Reimplemented from CValidationInterface.
Definition at line 197 of file zmqnotificationinterface.cpp.
References TransactionAddedToMempool().
◆ BlockDisconnected()
|
overrideprotectedvirtual |
Notifies listeners of a block being disconnected.
Called on a background thread.
Reimplemented from CValidationInterface.
Definition at line 205 of file zmqnotificationinterface.cpp.
References TransactionAddedToMempool().
◆ Create()
|
static |
Definition at line 32 of file zmqnotificationinterface.cpp.
References CZMQNotificationInterface(), gArgs, ArgsManager::GetArg(), Initialize(), ArgsManager::IsArgSet(), notifiers, CZMQAbstractNotifier::SetAddress(), and CZMQAbstractNotifier::SetType().
Referenced by AppInitMain().
◆ Initialize()
|
protected |
Definition at line 85 of file zmqnotificationinterface.cpp.
References CZMQAbstractNotifier::GetAddress(), CZMQAbstractNotifier::GetType(), CZMQAbstractNotifier::Initialize(), LogPrint, notifiers, pcontext, BCLog::ZMQ, and zmqError().
Referenced by Create().
◆ NotifyChainLock()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 159 of file zmqnotificationinterface.cpp.
References notifiers, CZMQAbstractNotifier::NotifyChainLock(), and CZMQAbstractNotifier::Shutdown().
◆ NotifyGovernanceObject()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 247 of file zmqnotificationinterface.cpp.
References notifiers, CZMQAbstractNotifier::NotifyGovernanceObject(), and CZMQAbstractNotifier::Shutdown().
◆ NotifyGovernanceVote()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 230 of file zmqnotificationinterface.cpp.
References notifiers, CZMQAbstractNotifier::NotifyGovernanceVote(), and CZMQAbstractNotifier::Shutdown().
◆ NotifyInstantSendDoubleSpendAttempt()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 264 of file zmqnotificationinterface.cpp.
References notifiers, CZMQAbstractNotifier::NotifyInstantSendDoubleSpendAttempt(), and CZMQAbstractNotifier::Shutdown().
◆ NotifyTransactionLock()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 213 of file zmqnotificationinterface.cpp.
References notifiers, CZMQAbstractNotifier::NotifyTransactionLock(), and CZMQAbstractNotifier::Shutdown().
◆ Shutdown()
|
protected |
Definition at line 122 of file zmqnotificationinterface.cpp.
References CZMQAbstractNotifier::GetAddress(), CZMQAbstractNotifier::GetType(), LogPrint, notifiers, pcontext, CZMQAbstractNotifier::Shutdown(), and BCLog::ZMQ.
Referenced by ~CZMQNotificationInterface().
◆ TransactionAddedToMempool()
|
overrideprotectedvirtual |
Notifies listeners of a transaction having been added to mempool.
Called on a background thread.
Reimplemented from CValidationInterface.
Definition at line 176 of file zmqnotificationinterface.cpp.
References notifiers, CZMQAbstractNotifier::NotifyTransaction(), and CZMQAbstractNotifier::Shutdown().
Referenced by BlockConnected(), and BlockDisconnected().
◆ UpdatedBlockTip()
|
overrideprotectedvirtual |
Notifies listeners of updated block chain tip.
Called on a background thread.
Reimplemented from CValidationInterface.
Definition at line 139 of file zmqnotificationinterface.cpp.
References notifiers, CZMQAbstractNotifier::NotifyBlock(), and CZMQAbstractNotifier::Shutdown().
Member Data Documentation
◆ notifiers
|
private |
Definition at line 43 of file zmqnotificationinterface.h.
Referenced by Create(), Initialize(), NotifyChainLock(), NotifyGovernanceObject(), NotifyGovernanceVote(), NotifyInstantSendDoubleSpendAttempt(), NotifyTransactionLock(), Shutdown(), TransactionAddedToMempool(), UpdatedBlockTip(), and ~CZMQNotificationInterface().
◆ pcontext
|
private |
Definition at line 42 of file zmqnotificationinterface.h.
Referenced by Initialize(), and Shutdown().
The documentation for this class was generated from the following files:
- src/zmq/zmqnotificationinterface.h
- src/zmq/zmqnotificationinterface.cpp