validation: No mempool clearing in UnloadBlockIndex

The only caller that uses this is ~ChainTestingSetup() where we
immediately destroy the mempool afterwards.
This commit is contained in:
Carl Dong
2022-01-11 15:11:56 -05:00
parent 572d831927
commit 7d99d725cd
4 changed files with 5 additions and 6 deletions

View File

@@ -135,7 +135,7 @@ extern arith_uint256 nMinimumChainWork;
extern const std::vector<std::string> CHECKLEVEL_DOC;
/** Unload database information */
void UnloadBlockIndex(CTxMemPool* mempool, ChainstateManager& chainman) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
void UnloadBlockIndex(ChainstateManager& chainman) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
/** Run instances of script checking worker threads */
void StartScriptCheckWorkerThreads(int threads_num);
/** Stop all of the script checking worker threads */