@@ -90,6 +90,13 @@ class BlockManager
90
90
friend ChainstateManager;
91
91
92
92
private:
93
+ /* *
94
+ * Load the blocktree off disk and into memory. Populate certain metadata
95
+ * per index entry (nStatus, nChainWork, nTimeMax, etc.) as well as peripheral
96
+ * collections like m_dirty_blockindex.
97
+ */
98
+ bool LoadBlockIndex (const Consensus::Params& consensus_params)
99
+ EXCLUSIVE_LOCKS_REQUIRED(cs_main);
93
100
void FlushBlockFile (bool fFinalize = false , bool finalize_undo = false );
94
101
void FlushUndoFile (int block_file, bool finalize = false );
95
102
bool FindBlockPos (FlatFilePos& pos, unsigned int nAddSize, unsigned int nHeight, CChain& active_chain, uint64_t nTime, bool fKnown );
@@ -147,14 +154,6 @@ class BlockManager
147
154
bool WriteBlockIndexDB () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
148
155
bool LoadBlockIndexDB () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
149
156
150
- /* *
151
- * Load the blocktree off disk and into memory. Populate certain metadata
152
- * per index entry (nStatus, nChainWork, nTimeMax, etc.) as well as peripheral
153
- * collections like m_dirty_blockindex.
154
- */
155
- bool LoadBlockIndex (const Consensus::Params& consensus_params)
156
- EXCLUSIVE_LOCKS_REQUIRED(cs_main);
157
-
158
157
/* * Clear all data members. */
159
158
void Unload () EXCLUSIVE_LOCKS_REQUIRED(cs_main);
160
159
0 commit comments