mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
validation: Pass in chainman to UnloadBlockIndex
This commit is contained in:
parent
4668ded6d6
commit
74f73c783d
5 changed files with 10 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue