diff options
author | Jon Atack <jon@atack.com> | 2022-02-09 14:01:32 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-02-09 15:38:36 +0100 |
commit | daad0093e3d1466789d0ce687902636c80cd74a1 (patch) | |
tree | c173134e31c193e4ca81538f564a00a0ff8254e1 /src/validation.h | |
parent | 6ac637f97f0ccdf0c6ab8565f68d37aeffe62090 (diff) | |
download | bitcoin-daad0093e3d1466789d0ce687902636c80cd74a1.tar.xz |
validation: replace lock with annotation in UnloadBlockIndex()
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index fdfd29d1f8..1972bf75ea 100644 --- a/src/validation.h +++ b/src/validation.h @@ -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 */ |