Bitcoin ABC 0.32.4
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
TemporaryRollback Class Reference

RAII class that temporarily rolls back the local chain in it's constructor and rolls it forward again in it's destructor. More...

Collaboration diagram for TemporaryRollback:
[legend]

Public Member Functions

 TemporaryRollback (ChainstateManager &chainman, avalanche::Processor *const avalanche, const CBlockIndex &index)
 
 ~TemporaryRollback ()
 

Private Attributes

ChainstateManagerm_chainman
 
avalanche::Processor *const m_avalanche
 
const CBlockIndexm_invalidate_index
 

Detailed Description

RAII class that temporarily rolls back the local chain in it's constructor and rolls it forward again in it's destructor.

Definition at line 2682 of file blockchain.cpp.

Constructor & Destructor Documentation

◆ TemporaryRollback()

TemporaryRollback::TemporaryRollback ( ChainstateManager chainman,
avalanche::Processor *const  avalanche,
const CBlockIndex index 
)
inline

Definition at line 2688 of file blockchain.cpp.

Here is the call graph for this function:

◆ ~TemporaryRollback()

TemporaryRollback::~TemporaryRollback ( )
inline

Definition at line 2696 of file blockchain.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_avalanche

avalanche::Processor* const TemporaryRollback::m_avalanche
private

Definition at line 2684 of file blockchain.cpp.

◆ m_chainman

ChainstateManager& TemporaryRollback::m_chainman
private

Definition at line 2683 of file blockchain.cpp.

◆ m_invalidate_index

const CBlockIndex& TemporaryRollback::m_invalidate_index
private

Definition at line 2685 of file blockchain.cpp.


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