Bitcoin Core 31.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
TemporaryPruneLock Class Reference

RAII class that registers a prune lock in its constructor to prevent block data from being pruned, and removes it in its destructor. More...

Collaboration diagram for TemporaryPruneLock:
[legend]

Public Member Functions

 TemporaryPruneLock (BlockManager &blockman, int height)
 
 ~TemporaryPruneLock ()
 

Private Attributes

BlockManagerm_blockman
 

Static Private Attributes

static constexpr const char * LOCK_NAME {"dumptxoutset-rollback"}
 

Detailed Description

RAII class that registers a prune lock in its constructor to prevent block data from being pruned, and removes it in its destructor.

Definition at line 3050 of file blockchain.cpp.

Constructor & Destructor Documentation

◆ TemporaryPruneLock()

TemporaryPruneLock::TemporaryPruneLock ( BlockManager blockman,
int  height 
)
inline

Definition at line 3055 of file blockchain.cpp.

◆ ~TemporaryPruneLock()

TemporaryPruneLock::~TemporaryPruneLock ( )
inline

Definition at line 3061 of file blockchain.cpp.

Member Data Documentation

◆ LOCK_NAME

constexpr const char* TemporaryPruneLock::LOCK_NAME {"dumptxoutset-rollback"}
staticconstexprprivate

Definition at line 3052 of file blockchain.cpp.

◆ m_blockman

BlockManager& TemporaryPruneLock::m_blockman
private

Definition at line 3053 of file blockchain.cpp.


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