aboutsummaryrefslogtreecommitdiff
path: root/src/node/blockstorage.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2022-04-27 12:21:22 +0200
committerJon Atack <jon@atack.com>2022-04-28 20:42:08 +0200
commited12c0a49d3c64d170aca9e66ef32a57d7933eeb (patch)
tree6f74d670d7c39c3cdd4531e48156f5e3fc6757a6 /src/node/blockstorage.h
parentdabec990135cc32584e822126ec49f8b31350837 (diff)
downloadbitcoin-ed12c0a49d3c64d170aca9e66ef32a57d7933eeb.tar.xz
blockstorage, refactor: make GetFirstStoredBlock() a member of BlockManager
instead of a global
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r--src/node/blockstorage.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h
index 622eac7fef..c5317e5a95 100644
--- a/src/node/blockstorage.h
+++ b/src/node/blockstorage.h
@@ -178,6 +178,9 @@ public:
//! Returns last CBlockIndex* that is a checkpoint
const CBlockIndex* GetLastCheckpoint(const CCheckpointData& data) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
+ //! Find the first block that is not pruned
+ const CBlockIndex* GetFirstStoredBlock(const CBlockIndex* start_block) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
+
/** True if any block files have ever been pruned. */
bool m_have_pruned = false;
@@ -188,9 +191,6 @@ public:
void UpdatePruneLock(const std::string& name, const PruneLockInfo& lock_info) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
};
-//! Find the first block that is not pruned
-const CBlockIndex* GetFirstStoredBlock(const CBlockIndex* start_block) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
-
void CleanupBlockRevFiles();
/** Open a block file (blk?????.dat) */