Fabcoin Core  0.16.2
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...

Collaboration diagram for ConnectTrace:
[legend]

Public Member Functions

 ConnectTrace (CTxMemPool &_pool)
 
 ~ConnectTrace ()
 
void BlockConnected (CBlockIndex *pindex, std::shared_ptr< const CBlock > pblock)
 
std::vector< PerBlockConnectTrace > & GetBlocksConnected ()
 
void NotifyEntryRemoved (CTransactionRef txRemoved, MemPoolRemovalReason reason)
 

Private Attributes

std::vector< PerBlockConnectTraceblocksConnected
 
CTxMemPoolpool
 

Detailed Description

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

This class also tracks transactions that are removed from the mempool as conflicts (per block) and can be used to pass all those transactions through SyncTransaction.

This class assumes (and asserts) that the conflicted transactions for a given block are added via mempool callbacks prior to the BlockConnected() associated with those transactions. If any transactions are marked conflicted, it is assumed that an associated block will always be added.

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

Definition at line 3081 of file validation.cpp.

Constructor & Destructor Documentation

ConnectTrace::ConnectTrace ( CTxMemPool _pool)
inline

Definition at line 3087 of file validation.cpp.

Here is the call graph for this function:

ConnectTrace::~ConnectTrace ( )
inline

Definition at line 3091 of file validation.cpp.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 3095 of file validation.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 3104 of file validation.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ConnectTrace::NotifyEntryRemoved ( CTransactionRef  txRemoved,
MemPoolRemovalReason  reason 
)
inline

Definition at line 3116 of file validation.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 3083 of file validation.cpp.

CTxMemPool& ConnectTrace::pool
private

Definition at line 3084 of file validation.cpp.


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