Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

zmqnotificationinterface.h
Go to the documentation of this file.
1 // Copyright (c) 2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
6 #define BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
7 
8 #include <validationinterface.h>
9 #include <string>
10 #include <map>
11 #include <list>
12 
13 class CBlockIndex;
15 
17 {
18 public:
20 
22 
23 protected:
24  bool Initialize();
25  void Shutdown();
26 
27  // CValidationInterface
28  void TransactionAddedToMempool(const CTransactionRef& tx, int64_t nAcceptTime) override;
29  void BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexConnected, const std::vector<CTransactionRef>& vtxConflicted) override;
30  void BlockDisconnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexDisconnected) override;
31  void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
32  void NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig& clsig) override;
33  void NotifyTransactionLock(const CTransaction &tx, const llmq::CInstantSendLock& islock) override;
34  void NotifyGovernanceVote(const CGovernanceVote& vote) override;
35  void NotifyGovernanceObject(const CGovernanceObject& object) override;
36  void NotifyInstantSendDoubleSpendAttempt(const CTransaction &currentTx, const CTransaction &previousTx) override;
37 
38 
39 private:
41 
42  void *pcontext;
43  std::list<CZMQAbstractNotifier*> notifiers;
44 };
45 
46 #endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
void BlockDisconnected(const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexDisconnected) override
Notifies listeners of a block being disconnected.
Governance Object.
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.
std::shared_ptr< const CTransaction > CTransactionRef
Definition: transaction.h:345
static CZMQNotificationInterface * Create()
void NotifyGovernanceVote(const CGovernanceVote &vote) override
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
Notifies listeners of updated block chain tip.
void NotifyTransactionLock(const CTransaction &tx, const llmq::CInstantSendLock &islock) override
std::list< CZMQAbstractNotifier * > notifiers
void NotifyGovernanceObject(const CGovernanceObject &object) override
void NotifyInstantSendDoubleSpendAttempt(const CTransaction &currentTx, const CTransaction &previousTx) override
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
void NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) override
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:198
void TransactionAddedToMempool(const CTransactionRef &tx, int64_t nAcceptTime) override
Notifies listeners of a transaction having been added to mempool.
Released under the MIT license