aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorCarl Dong <[email protected]>2020-08-25 15:23:57 -0400
committerCarl Dong <[email protected]>2020-09-15 14:11:34 -0400
commit74f73c783d46b012f375d819e2cd09c792820cd5 (patch)
tree9c351abe4519267e6c57ce65b195b819e2ca3e2e /src/init.cpp
parentvalidation: Move ~CMainCleanup logic to ~BlockManager (diff)
downloaddiscoin-74f73c783d46b012f375d819e2cd09c792820cd5.tar.xz
discoin-74f73c783d46b012f375d819e2cd09c792820cd5.zip
validation: Pass in chainman to UnloadBlockIndex
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 7dceef7ff..90bf3c646 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1559,7 +1559,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA
chainman.m_total_coinstip_cache = nCoinCacheUsage;
chainman.m_total_coinsdb_cache = nCoinDBCache;
- UnloadBlockIndex(node.mempool.get());
+ UnloadBlockIndex(node.mempool.get(), chainman);
// new CBlockTreeDB tries to delete the existing file, which
// fails if it's still open from the previous loop. Close it first: