mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Move blockstorage-related unload to BlockManager::Unload
This is a refactor and safe to do because: * UnloadBlockIndex calls ChainstateManager::Unload, which calls BlockManager::Unload * Only unit tests call Unload directly
This commit is contained in:
@@ -348,6 +348,11 @@ void BlockManager::Unload()
|
||||
}
|
||||
|
||||
m_block_index.clear();
|
||||
|
||||
vinfoBlockFile.clear();
|
||||
nLastBlockFile = 0;
|
||||
setDirtyBlockIndex.clear();
|
||||
setDirtyFileInfo.clear();
|
||||
}
|
||||
|
||||
bool BlockManager::WriteBlockIndexDB()
|
||||
|
||||
Reference in New Issue
Block a user