Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <dsnotificationinterface.h>
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 ¤tTx, 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 | |
CConnman & | connman |
Detailed Description
Definition at line 10 of file dsnotificationinterface.h.
Constructor & Destructor Documentation
◆ CDSNotificationInterface()
|
inlineexplicit |
Definition at line 13 of file dsnotificationinterface.h.
◆ ~CDSNotificationInterface()
|
virtualdefault |
Member Function Documentation
◆ AcceptedBlockHeader()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 31 of file dsnotificationinterface.cpp.
References CMasternodeSync::AcceptedBlockHeader(), llmq::CChainLocksHandler::AcceptedBlockHeader(), llmq::chainLocksHandler, and masternodeSync.
◆ BlockConnected()
|
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()
|
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 | ( | ) |
Definition at line 24 of file dsnotificationinterface.cpp.
References chainActive, cs_main, IsInitialBlockDownload(), LOCK, SynchronousUpdatedBlockTip(), CChain::Tip(), and UpdatedBlockTip().
Referenced by ThreadImport().
◆ NotifyChainLock()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 112 of file dsnotificationinterface.cpp.
References llmq::CInstantSendManager::NotifyChainLock(), CPrivateSend::NotifyChainLock(), and llmq::quorumInstantSendManager.
◆ NotifyHeaderTip()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 37 of file dsnotificationinterface.cpp.
References connman, masternodeSync, and CMasternodeSync::NotifyHeaderTip().
◆ NotifyMasternodeListChanged()
|
overrideprotectedvirtual |
Reimplemented from CValidationInterface.
Definition at line 106 of file dsnotificationinterface.cpp.
References governance, CMNAuth::NotifyMasternodeListChanged(), and CGovernanceManager::UpdateCachesAndClean().
◆ SynchronousUpdatedBlockTip()
|
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()
|
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()
|
overrideprotectedvirtual |
Notifies listeners of updated block chain tip.
Called on a background thread.
Reimplemented from CValidationInterface.
Definition at line 50 of file dsnotificationinterface.cpp.
References llmq::chainLocksHandler, connman, Consensus::Params::DIP0001Height, fDIP0001ActiveAtTip, fDisableGovernance, CChainParams::GetConsensus(), governance, masternodeSync, CBlockIndex::nHeight, Params(), privateSendClient, llmq::quorumDKGSessionManager, llmq::quorumInstantSendManager, llmq::quorumManager, llmq::CDKGSessionManager::UpdatedBlockTip(), CMasternodeSync::UpdatedBlockTip(), llmq::CQuorumManager::UpdatedBlockTip(), llmq::CChainLocksHandler::UpdatedBlockTip(), llmq::CInstantSendManager::UpdatedBlockTip(), CPrivateSendClientManager::UpdatedBlockTip(), CGovernanceManager::UpdatedBlockTip(), and CPrivateSend::UpdatedBlockTip().
Referenced by InitializeCurrentBlockTip().
Member Data Documentation
◆ 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: