aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2020-07-19 20:30:18 +0200
committerMarcoFalke <[email protected]>2020-07-29 12:29:51 +0200
commitfac674db200e6b2d5b32069335fb24e713d7b69f (patch)
treec34e2b54b07a899b5181cd69f846135051109b53 /src/init.cpp
parenttest: Simplify cs_main locks (diff)
downloaddiscoin-fac674db200e6b2d5b32069335fb24e713d7b69f.tar.xz
discoin-fac674db200e6b2d5b32069335fb24e713d7b69f.zip
Pass mempool pointer 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 1c89e2eef..2bd1a5308 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1566,7 +1566,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node)
chainman.m_total_coinstip_cache = nCoinCacheUsage;
chainman.m_total_coinsdb_cache = nCoinDBCache;
- UnloadBlockIndex();
+ UnloadBlockIndex(node.mempool);
// new CBlockTreeDB tries to delete the existing file, which
// fails if it's still open from the previous loop. Close it first: