Pass mempool pointer to UnloadBlockIndex

This commit is contained in:
MarcoFalke
2020-07-19 20:30:18 +02:00
parent faec851b6e
commit fac674db20
5 changed files with 6 additions and 6 deletions

View File

@@ -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: