diff options
-rw-r--r-- | src/node/blockstorage.cpp | 2 | ||||
-rw-r--r-- | src/validation.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp index be6a967f7e..f3a1afd9fa 100644 --- a/src/node/blockstorage.cpp +++ b/src/node/blockstorage.cpp @@ -300,6 +300,8 @@ void BlockManager::Unload() m_last_blockfile = 0; m_dirty_blockindex.clear(); m_dirty_fileinfo.clear(); + + fHavePruned = false; } bool BlockManager::WriteBlockIndexDB() diff --git a/src/validation.cpp b/src/validation.cpp index b92431afae..c7f9f75a9a 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4126,7 +4126,6 @@ void UnloadBlockIndex(CTxMemPool* mempool, ChainstateManager& chainman) for (int b = 0; b < VERSIONBITS_NUM_BITS; b++) { warningcache[b].clear(); } - chainman.m_blockman.fHavePruned = false; } bool ChainstateManager::LoadBlockIndex() |