validation: replace lock with annotation in UnloadBlockIndex()

This commit is contained in:
Jon Atack
2022-02-09 14:01:32 +01:00
parent 6ac637f97f
commit daad0093e3
3 changed files with 3 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ extern CBlockIndex *pindexBestHeader;
extern const std::vector<std::string> CHECKLEVEL_DOC;
/** Unload database information */
void UnloadBlockIndex(CTxMemPool* mempool, ChainstateManager& chainman);
void UnloadBlockIndex(CTxMemPool* mempool, 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 */