Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
zmqpublishnotifier.cpp
Go to the documentation of this file.
79 std::multimap<std::string, CZMQAbstractPublishNotifier*>::iterator i = mapPublishNotifiers.find(address);
143 bool CZMQAbstractPublishNotifier::SendMessage(const char *command, const void* data, size_t size)
150 int rc = zmq_send_multipart(psocket, command, strlen(command), data, size, msgseq, (size_t)sizeof(uint32_t), nullptr);
170 bool CZMQPublishHashChainLockNotifier::NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig& clsig)
190 bool CZMQPublishHashTransactionLockNotifier::NotifyTransactionLock(const CTransaction &transaction, const llmq::CInstantSendLock& islock)
210 bool CZMQPublishHashGovernanceObjectNotifier::NotifyGovernanceObject(const CGovernanceObject &object)
220 bool CZMQPublishHashInstantSendDoubleSpendNotifier::NotifyInstantSendDoubleSpendAttempt(const CTransaction ¤tTx, const CTransaction &previousTx)
223 LogPrint(BCLog::ZMQ, "zmq: Publish hashinstantsenddoublespend %s conflicts against %s\n", currentHash.ToString(), previousHash.ToString());
255 bool CZMQPublishRawChainLockNotifier::NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig& clsig)
276 bool CZMQPublishRawChainLockSigNotifier::NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig& clsig)
307 bool CZMQPublishRawTransactionLockNotifier::NotifyTransactionLock(const CTransaction &transaction, const llmq::CInstantSendLock& islock)
316 bool CZMQPublishRawTransactionLockSigNotifier::NotifyTransactionLock(const CTransaction &transaction, const llmq::CInstantSendLock& islock)
329 LogPrint(BCLog::ZMQ, "zmq: Publish rawgovernanceobject: hash = %s, vote = %d\n", nHash.ToString(), vote.ToString());
335 bool CZMQPublishRawGovernanceObjectNotifier::NotifyGovernanceObject(const CGovernanceObject &govobj)
338 LogPrint(BCLog::ZMQ, "zmq: Publish rawgovernanceobject: hash = %s, type = %d\n", nHash.ToString(), govobj.GetObjectType());
344 bool CZMQPublishRawInstantSendDoubleSpendNotifier::NotifyInstantSendDoubleSpendAttempt(const CTransaction ¤tTx, const CTransaction &previousTx)
346 LogPrint(BCLog::ZMQ, "zmq: Publish rawinstantsenddoublespend %s conflicts with %s\n", currentTx.GetHash().ToString(), previousTx.GetHash().ToString());
347 CDataStream ssCurrent(SER_NETWORK, PROTOCOL_VERSION), ssPrevious(SER_NETWORK, PROTOCOL_VERSION);
bool NotifyTransaction(const CTransaction &transaction) override
Definition: zmqpublishnotifier.cpp:298
Definition: block.h:72
Definition: governance-vote.h:54
static std::multimap< std::string, CZMQAbstractPublishNotifier * > mapPublishNotifiers
Definition: zmqpublishnotifier.cpp:12
bool NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) override
Definition: zmqpublishnotifier.cpp:276
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
bool NotifyGovernanceVote(const CGovernanceVote &vote) override
Definition: zmqpublishnotifier.cpp:326
bool NotifyTransaction(const CTransaction &transaction) override
Definition: zmqpublishnotifier.cpp:180
Definition: quorums_instantsend.h:20
bool NotifyBlock(const CBlockIndex *pindex) override
Definition: zmqpublishnotifier.cpp:234
bool NotifyGovernanceObject(const CGovernanceObject &object) override
Definition: zmqpublishnotifier.cpp:335
bool NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) override
Definition: zmqpublishnotifier.cpp:170
bool SendMessage(const char *command, const void *data, size_t size)
Definition: zmqpublishnotifier.cpp:143
bool NotifyBlock(const CBlockIndex *pindex) override
Definition: zmqpublishnotifier.cpp:160
bool NotifyGovernanceVote(const CGovernanceVote &vote) override
Definition: zmqpublishnotifier.cpp:200
static int zmq_send_multipart(void *sock, const void *data, size_t size,...)
Definition: zmqpublishnotifier.cpp:32
bool NotifyGovernanceObject(const CGovernanceObject &object) override
Definition: zmqpublishnotifier.cpp:210
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
const CChainParams & Params()
Return the currently selected parameters.
Definition: chainparams.cpp:947
bool NotifyInstantSendDoubleSpendAttempt(const CTransaction ¤tTx, const CTransaction &previousTx) override
Definition: zmqpublishnotifier.cpp:220
bool NotifyTransactionLock(const CTransaction &transaction, const llmq::CInstantSendLock &islock) override
Definition: zmqpublishnotifier.cpp:316
bool NotifyTransactionLock(const CTransaction &transaction, const llmq::CInstantSendLock &islock) override
Definition: zmqpublishnotifier.cpp:190
bool NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) override
Definition: zmqpublishnotifier.cpp:255
Definition: quorums_chainlocks.h:25
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:198
const Consensus::Params & GetConsensus() const
Definition: chainparams.h:54
bool ReadBlockFromDisk(CBlock &block, const CDiskBlockPos &pos, const Consensus::Params &consensusParams)
Functions for disk access for blocks.
Definition: validation.cpp:1043
bool NotifyTransactionLock(const CTransaction &transaction, const llmq::CInstantSendLock &islock) override
Definition: zmqpublishnotifier.cpp:307
Definition: util.h:115
Definition: serialize.h:160
bool NotifyInstantSendDoubleSpendAttempt(const CTransaction ¤tTx, const CTransaction &previousTx) override
Definition: zmqpublishnotifier.cpp:344
bool Initialize(void *pcontext) override
Definition: zmqpublishnotifier.cpp:74