Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

dsnotificationinterface.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_DSNOTIFICATIONINTERFACE_H
6 #define BITCOIN_DSNOTIFICATIONINTERFACE_H
7 
8 #include <validationinterface.h>
9 
11 {
12 public:
13  explicit CDSNotificationInterface(CConnman& connmanIn): connman(connmanIn) {}
14  virtual ~CDSNotificationInterface() = default;
15 
16  // a small helper to initialize current block height in sub-modules on startup
18 
19 protected:
20  // CValidationInterface
21  void AcceptedBlockHeader(const CBlockIndex *pindexNew) override;
22  void NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitialDownload) override;
23  void SynchronousUpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
24  void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override;
25  void TransactionAddedToMempool(const CTransactionRef& tx, int64_t nAcceptTime) override;
26  void BlockConnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindex, const std::vector<CTransactionRef>& vtxConflicted) override;
27  void BlockDisconnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexDisconnected) override;
28  void NotifyMasternodeListChanged(bool undo, const CDeterministicMNList& oldMNList, const CDeterministicMNListDiff& diff) override;
29  void NotifyChainLock(const CBlockIndex* pindex, const llmq::CChainLockSig& clsig) override;
30 
31 private:
33 };
34 
35 #endif // BITCOIN_DSNOTIFICATIONINTERFACE_H
void NotifyChainLock(const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) override
CDSNotificationInterface(CConnman &connmanIn)
void BlockDisconnected(const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexDisconnected) override
Notifies listeners of a block being disconnected.
void SynchronousUpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
Same as UpdatedBlockTip, but called from the caller&#39;s thread.
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
Notifies listeners of updated block chain tip.
void BlockConnected(const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindex, const std::vector< CTransactionRef > &vtxConflicted) override
Notifies listeners of a block being connected.
void NotifyMasternodeListChanged(bool undo, const CDeterministicMNList &oldMNList, const CDeterministicMNListDiff &diff) override
std::shared_ptr< const CTransaction > CTransactionRef
Definition: transaction.h:345
void NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitialDownload) override
void AcceptedBlockHeader(const CBlockIndex *pindexNew) override
void TransactionAddedToMempool(const CTransactionRef &tx, int64_t nAcceptTime) override
Notifies listeners of a transaction having been added to mempool.
virtual ~CDSNotificationInterface()=default
Definition: net.h:136
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
Released under the MIT license