mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02: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:
parent
fa467f3913
commit
fab262174b
2 changed files with 5 additions and 4 deletions
|
|
@ -348,6 +348,11 @@ void BlockManager::Unload()
|
|||
}
|
||||
|
||||
m_block_index.clear();
|
||||
|
||||
vinfoBlockFile.clear();
|
||||
nLastBlockFile = 0;
|
||||
setDirtyBlockIndex.clear();
|
||||
setDirtyFileInfo.clear();
|
||||
}
|
||||
|
||||
bool BlockManager::WriteBlockIndexDB()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue