mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 06:30:10 +01:00
validation: replace lock with annotation in UnloadBlockIndex()
This commit is contained in:
@@ -4028,7 +4028,7 @@ void CChainState::UnloadBlockIndex() {
|
||||
// block index state
|
||||
void UnloadBlockIndex(CTxMemPool* mempool, ChainstateManager& chainman)
|
||||
{
|
||||
LOCK(cs_main);
|
||||
AssertLockHeld(::cs_main);
|
||||
chainman.Unload();
|
||||
pindexBestHeader = nullptr;
|
||||
if (mempool) mempool->clear();
|
||||
|
||||
Reference in New Issue
Block a user