aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-08-25 15:23:57 -0400
committerCarl Dong <contact@carldong.me>2020-09-15 14:11:34 -0400
commit74f73c783d46b012f375d819e2cd09c792820cd5 (patch)
tree9c351abe4519267e6c57ce65b195b819e2ca3e2e /src/init.cpp
parent4668ded6d6ea4299d998abbb57543f37519812e2 (diff)
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 7dceef7fff..90bf3c6461 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: