@@ -80,6 +80,13 @@ class BlockManager
80
80
friend ChainstateManager;
81
81
82
82
private:
83
+ /* *
84
+ * Load the blocktree off disk and into memory. Populate certain metadata
85
+ * per index entry (nStatus, nChainWork, nTimeMax, etc.) as well as peripheral
86
+ * collections like m_dirty_blockindex.
87
+ */
88
+ bool LoadBlockIndex (const Consensus::Params& consensus_params)
89
+ EXCLUSIVE_LOCKS_REQUIRED(cs_main);
83
90
void FlushBlockFile (bool fFinalize = false , bool finalize_undo = false );
84
91
void FlushUndoFile (int block_file, bool finalize = false );
85
92
bool FindBlockPos (FlatFilePos& pos, unsigned int nAddSize, unsigned int nHeight, CChain& active_chain, uint64_t nTime, bool fKnown );
@@ -136,14 +143,6 @@ class BlockManager
136
143
bool WriteBlockIndexDB () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
137
144
bool LoadBlockIndexDB () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
138
145
139
- /* *
140
- * Load the blocktree off disk and into memory. Populate certain metadata
141
- * per index entry (nStatus, nChainWork, nTimeMax, etc.) as well as peripheral
142
- * collections like m_dirty_blockindex.
143
- */
144
- bool LoadBlockIndex (const Consensus::Params& consensus_params)
145
- EXCLUSIVE_LOCKS_REQUIRED(cs_main);
146
-
147
146
/* * Clear all data members. */
148
147
void Unload () EXCLUSIVE_LOCKS_REQUIRED(cs_main);
149
148
0 commit comments