Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
zmqnotificationinterface.cpp
Go to the documentation of this file.
41 factories["pubhashtxlock"] = CZMQAbstractNotifier::Create<CZMQPublishHashTransactionLockNotifier>;
42 factories["pubhashgovernancevote"] = CZMQAbstractNotifier::Create<CZMQPublishHashGovernanceVoteNotifier>;
43 factories["pubhashgovernanceobject"] = CZMQAbstractNotifier::Create<CZMQPublishHashGovernanceObjectNotifier>;
44 factories["pubhashinstantsenddoublespend"] = CZMQAbstractNotifier::Create<CZMQPublishHashInstantSendDoubleSpendNotifier>;
47 factories["pubrawchainlocksig"] = CZMQAbstractNotifier::Create<CZMQPublishRawChainLockSigNotifier>;
50 factories["pubrawtxlocksig"] = CZMQAbstractNotifier::Create<CZMQPublishRawTransactionLockSigNotifier>;
51 factories["pubrawgovernancevote"] = CZMQAbstractNotifier::Create<CZMQPublishRawGovernanceVoteNotifier>;
52 factories["pubrawgovernanceobject"] = CZMQAbstractNotifier::Create<CZMQPublishRawGovernanceObjectNotifier>;
53 factories["pubrawinstantsenddoublespend"] = CZMQAbstractNotifier::Create<CZMQPublishRawInstantSendDoubleSpendNotifier>;
104 LogPrint(BCLog::ZMQ, " Notifier %s ready (address = %s)\n", notifier->GetType(), notifier->GetAddress());
108 LogPrint(BCLog::ZMQ, " Notifier %s failed (address = %s)\n", notifier->GetType(), notifier->GetAddress());
130 LogPrint(BCLog::ZMQ, " Shutdown notifier %s at %s\n", notifier->GetType(), notifier->GetAddress());
139 void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
141 if (fInitialDownload || pindexNew == pindexFork) // In IBD or blocks were disconnected without any new ones
159 void CZMQNotificationInterface::NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig& clsig)
176 void CZMQNotificationInterface::TransactionAddedToMempool(const CTransactionRef& ptx, int64_t nAcceptTime)
197 void CZMQNotificationInterface::BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexConnected, const std::vector<CTransactionRef>& vtxConflicted)
205 void CZMQNotificationInterface::BlockDisconnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexDisconnected)
213 void CZMQNotificationInterface::NotifyTransactionLock(const CTransaction &tx, const llmq::CInstantSendLock& islock)
264 void CZMQNotificationInterface::NotifyInstantSendDoubleSpendAttempt(const CTransaction ¤tTx, const CTransaction &previousTx)
void BlockDisconnected(const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexDisconnected) override
Notifies listeners of a block being disconnected.
Definition: zmqnotificationinterface.cpp:205
virtual bool NotifyTransactionLock(const CTransaction &transaction, const llmq::CInstantSendLock &islock)
Definition: zmqabstractnotifier.cpp:29
bool IsArgSet(const std::string &strArg) const
Return true if the given argument has been manually set.
Definition: util.cpp:784
virtual bool NotifyGovernanceObject(const CGovernanceObject &object)
Definition: zmqabstractnotifier.cpp:39
virtual bool NotifyBlock(const CBlockIndex *pindex)
Definition: zmqabstractnotifier.cpp:14
Definition: governance-vote.h:54
Definition: zmqabstractnotifier.h:22
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.
Definition: zmqnotificationinterface.cpp:197
virtual bool NotifyInstantSendDoubleSpendAttempt(const CTransaction ¤tTx, const CTransaction &previousTx)
Definition: zmqabstractnotifier.cpp:44
Definition: quorums_instantsend.h:20
static CZMQNotificationInterface * Create()
Definition: zmqnotificationinterface.cpp:32
virtual bool NotifyTransaction(const CTransaction &transaction)
Definition: zmqabstractnotifier.cpp:24
virtual ~CZMQNotificationInterface()
Definition: zmqnotificationinterface.cpp:22
void NotifyGovernanceVote(const CGovernanceVote &vote) override
Definition: zmqnotificationinterface.cpp:230
void SetAddress(const std::string &a)
Definition: zmqabstractnotifier.h:37
virtual void Shutdown()=0
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
Notifies listeners of updated block chain tip.
Definition: zmqnotificationinterface.cpp:139
void NotifyTransactionLock(const CTransaction &tx, const llmq::CInstantSendLock &islock) override
Definition: zmqnotificationinterface.cpp:213
std::list< CZMQAbstractNotifier * > notifiers
Definition: zmqnotificationinterface.h:43
void NotifyGovernanceObject(const CGovernanceObject &object) override
Definition: zmqnotificationinterface.cpp:247
void NotifyInstantSendDoubleSpendAttempt(const CTransaction ¤tTx, const CTransaction &previousTx) override
Definition: zmqnotificationinterface.cpp:264
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
Definition: util.cpp:808
CZMQAbstractNotifier *(* CZMQNotifierFactory)()
Definition: zmqabstractnotifier.h:20
virtual bool Initialize(void *pcontext)=0
void NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) override
Definition: zmqnotificationinterface.cpp:159
Definition: quorums_chainlocks.h:25
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:198
CZMQNotificationInterface()
Definition: zmqnotificationinterface.cpp:18
virtual bool NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig &clsig)
Definition: zmqabstractnotifier.cpp:19
Definition: util.h:115
virtual bool NotifyGovernanceVote(const CGovernanceVote &vote)
Definition: zmqabstractnotifier.cpp:34
void TransactionAddedToMempool(const CTransactionRef &tx, int64_t nAcceptTime) override
Notifies listeners of a transaction having been added to mempool.
Definition: zmqnotificationinterface.cpp:176