Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <dsnotificationinterface.h>

+ Inheritance diagram for CDSNotificationInterface:
+ Collaboration diagram for CDSNotificationInterface:

Public Member Functions

 CDSNotificationInterface (CConnman &connmanIn)
 
virtual ~CDSNotificationInterface ()=default
 
void InitializeCurrentBlockTip ()
 

Protected Member Functions

void AcceptedBlockHeader (const CBlockIndex *pindexNew) override
 
void NotifyHeaderTip (const CBlockIndex *pindexNew, bool fInitialDownload) override
 
void SynchronousUpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
 Same as UpdatedBlockTip, but called from the caller's thread. More...
 
void UpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override
 Notifies listeners of updated block chain tip. More...
 
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 *pindex, 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 NotifyMasternodeListChanged (bool undo, const CDeterministicMNList &oldMNList, const CDeterministicMNListDiff &diff) override
 
void NotifyChainLock (const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) override
 
- Protected Member Functions inherited from CValidationInterface
virtual void TransactionRemovedFromMempool (const CTransactionRef &ptx)
 Notifies listeners of a transaction leaving mempool. More...
 
virtual void NotifyTransactionLock (const CTransaction &tx, const llmq::CInstantSendLock &islock)
 
virtual void NotifyGovernanceVote (const CGovernanceVote &vote)
 
virtual void NotifyGovernanceObject (const CGovernanceObject &object)
 
virtual void NotifyInstantSendDoubleSpendAttempt (const CTransaction &currentTx, const CTransaction &previousTx)
 
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 Attributes

CConnmanconnman
 

Detailed Description

Definition at line 10 of file dsnotificationinterface.h.

Constructor & Destructor Documentation

◆ CDSNotificationInterface()

CDSNotificationInterface::CDSNotificationInterface ( CConnman connmanIn)
inlineexplicit

Definition at line 13 of file dsnotificationinterface.h.

◆ ~CDSNotificationInterface()

virtual CDSNotificationInterface::~CDSNotificationInterface ( )
virtualdefault

Member Function Documentation

◆ AcceptedBlockHeader()

void CDSNotificationInterface::AcceptedBlockHeader ( const CBlockIndex pindexNew)
overrideprotectedvirtual

◆ BlockConnected()

void CDSNotificationInterface::BlockConnected ( const std::shared_ptr< const CBlock > &  block,
const CBlockIndex pindex,
const std::vector< CTransactionRef > &  txnConflicted 
)
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 84 of file dsnotificationinterface.cpp.

References llmq::CChainLocksHandler::BlockConnected(), llmq::CInstantSendManager::BlockConnected(), CPrivateSend::BlockConnected(), llmq::chainLocksHandler, and llmq::quorumInstantSendManager.

◆ BlockDisconnected()

void CDSNotificationInterface::BlockDisconnected ( const std::shared_ptr< const CBlock > &  block,
const CBlockIndex pindexDisconnected 
)
overrideprotectedvirtual

Notifies listeners of a block being disconnected.

Called on a background thread.

Reimplemented from CValidationInterface.

Definition at line 99 of file dsnotificationinterface.cpp.

References llmq::CChainLocksHandler::BlockDisconnected(), llmq::CInstantSendManager::BlockDisconnected(), CPrivateSend::BlockDisconnected(), llmq::chainLocksHandler, and llmq::quorumInstantSendManager.

◆ InitializeCurrentBlockTip()

void CDSNotificationInterface::InitializeCurrentBlockTip ( )

◆ NotifyChainLock()

void CDSNotificationInterface::NotifyChainLock ( const CBlockIndex pindex,
const llmq::CChainLockSig clsig 
)
overrideprotectedvirtual

◆ NotifyHeaderTip()

void CDSNotificationInterface::NotifyHeaderTip ( const CBlockIndex pindexNew,
bool  fInitialDownload 
)
overrideprotectedvirtual

Reimplemented from CValidationInterface.

Definition at line 37 of file dsnotificationinterface.cpp.

References connman, masternodeSync, and CMasternodeSync::NotifyHeaderTip().

◆ NotifyMasternodeListChanged()

void CDSNotificationInterface::NotifyMasternodeListChanged ( bool  undo,
const CDeterministicMNList oldMNList,
const CDeterministicMNListDiff diff 
)
overrideprotectedvirtual

◆ SynchronousUpdatedBlockTip()

void CDSNotificationInterface::SynchronousUpdatedBlockTip ( const CBlockIndex pindexNew,
const CBlockIndex pindexFork,
bool  fInitialDownload 
)
overrideprotectedvirtual

Same as UpdatedBlockTip, but called from the caller's thread.

Reimplemented from CValidationInterface.

Definition at line 42 of file dsnotificationinterface.cpp.

References deterministicMNManager.

Referenced by InitializeCurrentBlockTip().

◆ TransactionAddedToMempool()

void CDSNotificationInterface::TransactionAddedToMempool ( const CTransactionRef ptxn,
int64_t  nAcceptTime 
)
overrideprotectedvirtual

Notifies listeners of a transaction having been added to mempool.

Called on a background thread.

Reimplemented from CValidationInterface.

Definition at line 77 of file dsnotificationinterface.cpp.

References llmq::chainLocksHandler, llmq::quorumInstantSendManager, llmq::CChainLocksHandler::TransactionAddedToMempool(), llmq::CInstantSendManager::TransactionAddedToMempool(), and CPrivateSend::TransactionAddedToMempool().

◆ UpdatedBlockTip()

Member Data Documentation

◆ connman

CConnman& CDSNotificationInterface::connman
private

Definition at line 32 of file dsnotificationinterface.h.

Referenced by NotifyHeaderTip(), and UpdatedBlockTip().


The documentation for this class was generated from the following files:
Released under the MIT license