Merge b51e60f914 into merged_master (Bitcoin PR bitcoin/bitcoin#22564)

This commit is contained in:
James Dorfman 2024-08-06 19:02:09 +00:00
commit 628a1506e1
10 changed files with 39 additions and 87 deletions

View file

@ -313,20 +313,6 @@ bool BlockManager::LoadBlockIndex(const Consensus::Params& consensus_params)
return true;
}
void BlockManager::Unload()
{
m_blocks_unlinked.clear();
m_block_index.clear();
m_blockfile_info.clear();
m_last_blockfile = 0;
m_dirty_blockindex.clear();
m_dirty_fileinfo.clear();
m_have_pruned = false;
}
bool BlockManager::WriteBlockIndexDB()
{
AssertLockHeld(::cs_main);