@@ -90,6 +90,13 @@ class BlockManager
9090 friend ChainstateManager;
9191
9292private:
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);
93100 void FlushBlockFile (bool fFinalize = false , bool finalize_undo = false );
94101 void FlushUndoFile (int block_file, bool finalize = false );
95102 bool FindBlockPos (FlatFilePos& pos, unsigned int nAddSize, unsigned int nHeight, CChain& active_chain, uint64_t nTime, bool fKnown );
@@ -147,14 +154,6 @@ class BlockManager
147154 bool WriteBlockIndexDB () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
148155 bool LoadBlockIndexDB () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
149156
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-
158157 /* * Clear all data members. */
159158 void Unload () EXCLUSIVE_LOCKS_REQUIRED(cs_main);
160159
0 commit comments