Raven Core  3.0.0
P2P Digital Currency
Protected Member Functions | List of all members
CValidationInterface Class Reference

#include <validationinterface.h>

Inheritance diagram for CValidationInterface:
[legend]

Protected Member Functions

virtual void UpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
 Notifies listeners of updated block chain tip. More...
 
virtual void TransactionAddedToMempool (const CTransactionRef &ptxn)
 Notifies listeners of a transaction having been added to mempool. More...
 
virtual void BlockConnected (const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex, const std::vector< CTransactionRef > &txnConflicted)
 Notifies listeners of a block being connected. More...
 
virtual void BlockDisconnected (const std::shared_ptr< const CBlock > &block)
 Notifies listeners of a block being disconnected. More...
 
virtual void SetBestChain (const CBlockLocator &locator)
 Notifies listeners of the new active block chain on-disk. More...
 
virtual void Inventory (const uint256 &hash)
 Notifies listeners about an inventory item being seen on the network. 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...
 
virtual void BlockFound (const uint256 &hash)
 
virtual void NewAssetMessage (const CMessage &message)
 
friend void ::RegisterValidationInterface (CValidationInterface *)
 
friend void ::UnregisterValidationInterface (CValidationInterface *)
 
friend void ::UnregisterAllValidationInterfaces ()
 

Detailed Description

Definition at line 35 of file validationinterface.h.

Member Function Documentation

◆ BlockChecked()

virtual void CValidationInterface::BlockChecked ( const CBlock ,
const CValidationState  
)
inlineprotectedvirtual

Notifies listeners of a block validation result.

If the provided CValidationState IsValid, the provided block is guaranteed to be the current best block at the time the callback was generated (not necessarily now)

Reimplemented in submitblock_StateCatcher, and PeerLogicValidation.

Definition at line 60 of file validationinterface.h.

Here is the caller graph for this function:

◆ BlockConnected()

virtual void CValidationInterface::BlockConnected ( const std::shared_ptr< const CBlock > &  block,
const CBlockIndex pindex,
const std::vector< CTransactionRef > &  txnConflicted 
)
inlineprotectedvirtual

Notifies listeners of a block being connected.

Provides a vector of transactions evicted from the mempool as a result.

Reimplemented in CWallet, PeerLogicValidation, and CZMQNotificationInterface.

Definition at line 45 of file validationinterface.h.

Here is the caller graph for this function:

◆ BlockDisconnected()

virtual void CValidationInterface::BlockDisconnected ( const std::shared_ptr< const CBlock > &  block)
inlineprotectedvirtual

Notifies listeners of a block being disconnected.

Reimplemented in CWallet, and CZMQNotificationInterface.

Definition at line 47 of file validationinterface.h.

Here is the caller graph for this function:

◆ BlockFound()

virtual void CValidationInterface::BlockFound ( const uint256 hash)
inlineprotectedvirtual

Definition at line 66 of file validationinterface.h.

Here is the caller graph for this function:

◆ Inventory()

virtual void CValidationInterface::Inventory ( const uint256 hash)
inlineprotectedvirtual

Notifies listeners about an inventory item being seen on the network.

Reimplemented in CWallet.

Definition at line 51 of file validationinterface.h.

Here is the caller graph for this function:

◆ NewAssetMessage()

virtual void CValidationInterface::NewAssetMessage ( const CMessage message)
inlineprotectedvirtual

Reimplemented in CZMQNotificationInterface.

Definition at line 67 of file validationinterface.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NewPoWValidBlock()

virtual void CValidationInterface::NewPoWValidBlock ( const CBlockIndex pindex,
const std::shared_ptr< const CBlock > &  block 
)
inlineprotectedvirtual

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.

Reimplemented in PeerLogicValidation.

Definition at line 64 of file validationinterface.h.

Here is the caller graph for this function:

◆ ResendWalletTransactions()

virtual void CValidationInterface::ResendWalletTransactions ( int64_t  nBestBlockTime,
CConnman connman 
)
inlineprotectedvirtual

Tells listeners to broadcast their data.

Reimplemented in CWallet.

Definition at line 53 of file validationinterface.h.

Here is the caller graph for this function:

◆ SetBestChain()

virtual void CValidationInterface::SetBestChain ( const CBlockLocator locator)
inlineprotectedvirtual

Notifies listeners of the new active block chain on-disk.

Reimplemented in CWallet.

Definition at line 49 of file validationinterface.h.

Here is the caller graph for this function:

◆ TransactionAddedToMempool()

virtual void CValidationInterface::TransactionAddedToMempool ( const CTransactionRef ptxn)
inlineprotectedvirtual

Notifies listeners of a transaction having been added to mempool.

Reimplemented in CWallet, and CZMQNotificationInterface.

Definition at line 40 of file validationinterface.h.

Here is the caller graph for this function:

◆ UpdatedBlockTip()

virtual void CValidationInterface::UpdatedBlockTip ( const CBlockIndex pindexNew,
const CBlockIndex pindexFork,
bool  fInitialDownload 
)
inlineprotectedvirtual

Notifies listeners of updated block chain tip.

Reimplemented in PeerLogicValidation, and CZMQNotificationInterface.

Definition at line 38 of file validationinterface.h.

Here is the caller graph for this function:

◆ void ::RegisterValidationInterface()

CValidationInterface::void ::RegisterValidationInterface ( CValidationInterface )
protected

◆ void ::UnregisterAllValidationInterfaces()

CValidationInterface::void ::UnregisterAllValidationInterfaces ( )
protected

◆ void ::UnregisterValidationInterface()

CValidationInterface::void ::UnregisterValidationInterface ( CValidationInterface )
protected

The documentation for this class was generated from the following file: