Bitcoin Core  0.20.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
ConnectTrace Class Reference

Used to track blocks whose transactions were applied to the UTXO state as a part of a single ActivateBestChainStep call. More...

Public Member Functions

 ConnectTrace ()
 
void BlockConnected (CBlockIndex *pindex, std::shared_ptr< const CBlock > pblock)
 
std::vector< PerBlockConnectTrace > & GetBlocksConnected ()
 

Private Attributes

std::vector< PerBlockConnectTraceblocksConnected
 

Detailed Description

Used to track blocks whose transactions were applied to the UTXO state as a part of a single ActivateBestChainStep call.

This class is single-use, once you call GetBlocksConnected() you have to throw it away and make a new one.

Definition at line 2572 of file validation.cpp.

Constructor & Destructor Documentation

◆ ConnectTrace()

ConnectTrace::ConnectTrace ( )
inlineexplicit

Definition at line 2577 of file validation.cpp.

Member Function Documentation

◆ BlockConnected()

void ConnectTrace::BlockConnected ( CBlockIndex pindex,
std::shared_ptr< const CBlock pblock 
)
inline

Definition at line 2579 of file validation.cpp.

Here is the caller graph for this function:

◆ GetBlocksConnected()

std::vector<PerBlockConnectTrace>& ConnectTrace::GetBlocksConnected ( )
inline

Definition at line 2588 of file validation.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ blocksConnected

std::vector<PerBlockConnectTrace> ConnectTrace::blocksConnected
private

Definition at line 2574 of file validation.cpp.


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