Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
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

BlockManager & m_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 3078 of file blockchain.cpp.

Constructor & Destructor Documentation

◆ TemporaryPruneLock()

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

Definition at line 3083 of file blockchain.cpp.

◆ ~TemporaryPruneLock()

TemporaryPruneLock::~TemporaryPruneLock ( )
inline

Definition at line 3089 of file blockchain.cpp.

Member Data Documentation

◆ LOCK_NAME

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

Definition at line 3080 of file blockchain.cpp.

◆ m_blockman

BlockManager& TemporaryPruneLock::m_blockman
private

Definition at line 3081 of file blockchain.cpp.


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