Bitcoin Core 28.99.0
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, const CBlockIndex &index)
 
 ~TemporaryRollback ()
 

Private Attributes

ChainstateManagerm_chainman
 
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 2922 of file blockchain.cpp.

Constructor & Destructor Documentation

◆ TemporaryRollback()

TemporaryRollback::TemporaryRollback ( ChainstateManager chainman,
const CBlockIndex index 
)
inline

Definition at line 2927 of file blockchain.cpp.

Here is the call graph for this function:

◆ ~TemporaryRollback()

TemporaryRollback::~TemporaryRollback ( )
inline

Definition at line 2930 of file blockchain.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_chainman

ChainstateManager& TemporaryRollback::m_chainman
private

Definition at line 2924 of file blockchain.cpp.

◆ m_invalidate_index

const CBlockIndex& TemporaryRollback::m_invalidate_index
private

Definition at line 2925 of file blockchain.cpp.


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