diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-04-19 11:59:09 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-04-19 11:32:49 +0200 |
commit | fa1970f075292d7312654730a994a68c2ca8bc06 (patch) | |
tree | 2744919dd9a9be524783b6028da2020a76f9918c /src/node | |
parent | 907659770bd2e95f4f4af652eb9e443772f2c0f1 (diff) |
Make BlockManager::LoadBlockIndex private
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/blockstorage.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h index a051e90808..7c6c379a47 100644 --- a/src/node/blockstorage.h +++ b/src/node/blockstorage.h @@ -80,6 +80,13 @@ class BlockManager friend ChainstateManager; private: + /** + * Load the blocktree off disk and into memory. Populate certain metadata + * per index entry (nStatus, nChainWork, nTimeMax, etc.) as well as peripheral + * collections like m_dirty_blockindex. + */ + bool LoadBlockIndex(const Consensus::Params& consensus_params) + EXCLUSIVE_LOCKS_REQUIRED(cs_main); void FlushBlockFile(bool fFinalize = false, bool finalize_undo = false); void FlushUndoFile(int block_file, bool finalize = false); bool FindBlockPos(FlatFilePos& pos, unsigned int nAddSize, unsigned int nHeight, CChain& active_chain, uint64_t nTime, bool fKnown); @@ -136,14 +143,6 @@ public: bool WriteBlockIndexDB() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); bool LoadBlockIndexDB() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); - /** - * Load the blocktree off disk and into memory. Populate certain metadata - * per index entry (nStatus, nChainWork, nTimeMax, etc.) as well as peripheral - * collections like m_dirty_blockindex. - */ - bool LoadBlockIndex(const Consensus::Params& consensus_params) - EXCLUSIVE_LOCKS_REQUIRED(cs_main); - /** Clear all data members. */ void Unload() EXCLUSIVE_LOCKS_REQUIRED(cs_main); |