PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
BlockStateCatcher Class Reference

Validation interface listener used to get feedback from ProcessNewBlock result. More...

#include <blockstatecatcher.h>

Inheritance diagram for BlockStateCatcher:
[legend]
Collaboration diagram for BlockStateCatcher:
[legend]

Public Member Functions

 BlockStateCatcher (const uint256 &hashIn)
 
void setBlockHash (const uint256 &_hash)
 
void clear ()
 
bool stateErrorFound ()
 
- Public Member Functions inherited from CValidationInterface
virtual ~CValidationInterface ()=default
 
virtual void AcceptedBlockHeader (const CBlockIndex *pindexNew)
 

Public Attributes

uint256 hash
 
bool found
 
CValidationState state
 

Protected Member Functions

virtual void BlockChecked (const CBlock &block, const CValidationState &stateIn)
 
- Protected Member Functions inherited from CValidationInterface
virtual void UpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
 Notifies listeners when the block chain tip advances. More...
 
virtual void TransactionAddedToMempool (const CTransactionRef &ptxn)
 Notifies listeners of a transaction having been added to mempool. More...
 
virtual void TransactionRemovedFromMempool (const CTransactionRef &ptx, MemPoolRemovalReason reason)
 Notifies listeners of a transaction leaving mempool. More...
 
virtual void BlockConnected (const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex)
 Notifies listeners of a block being connected. More...
 
virtual void BlockDisconnected (const std::shared_ptr< const CBlock > &block, const uint256 &blockHash, int nBlockHeight, int64_t blockTime)
 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 ResendWalletTransactions (CConnman *connman)
 Tells listeners to broadcast their data. More...
 
friend void ::RegisterSharedValidationInterface (std::shared_ptr< CValidationInterface >)
 
friend void ::UnregisterValidationInterface (CValidationInterface *)
 
friend void ::UnregisterAllValidationInterfaces ()
 
virtual void NotifyMasternodeListChanged (bool undo, const CDeterministicMNList &oldMNList, const CDeterministicMNListDiff &diff)
 Notifies listeners of updated deterministic masternode list. More...
 

Detailed Description

Validation interface listener used to get feedback from ProcessNewBlock result.

Definition at line 14 of file blockstatecatcher.h.

Constructor & Destructor Documentation

◆ BlockStateCatcher()

BlockStateCatcher::BlockStateCatcher ( const uint256 hashIn)
inlineexplicit

Definition at line 20 of file blockstatecatcher.h.

Member Function Documentation

◆ BlockChecked()

virtual void BlockStateCatcher::BlockChecked ( const CBlock block,
const CValidationState stateIn 
)
inlineprotectedvirtual

Reimplemented from CValidationInterface.

Definition at line 26 of file blockstatecatcher.h.

Here is the call graph for this function:

◆ clear()

void BlockStateCatcher::clear ( )
inline

Definition at line 22 of file blockstatecatcher.h.

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

◆ setBlockHash()

void BlockStateCatcher::setBlockHash ( const uint256 _hash)
inline

Definition at line 21 of file blockstatecatcher.h.

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

◆ stateErrorFound()

bool BlockStateCatcher::stateErrorFound ( )
inline

Definition at line 23 of file blockstatecatcher.h.

Here is the call graph for this function:

Member Data Documentation

◆ found

bool BlockStateCatcher::found

Definition at line 18 of file blockstatecatcher.h.

◆ hash

uint256 BlockStateCatcher::hash

Definition at line 17 of file blockstatecatcher.h.

◆ state

CValidationState BlockStateCatcher::state

Definition at line 19 of file blockstatecatcher.h.


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