File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ bool BaseIndex::Init()
65
65
return true ;
66
66
}
67
67
68
- static const CBlockIndex* NextSyncBlock (const CBlockIndex* pindex_prev)
68
+ static const CBlockIndex* NextSyncBlock (const CBlockIndex* pindex_prev) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
69
69
{
70
70
AssertLockHeld (cs_main);
71
71
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ bool LoadGenesisBlock(const CChainParams& chainparams);
257
257
* initializing state if we're running with -reindex. */
258
258
bool LoadBlockIndex (const CChainParams& chainparams) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
259
259
/* * Update the chain tip based on database information. */
260
- bool LoadChainTip (const CChainParams& chainparams);
260
+ bool LoadChainTip (const CChainParams& chainparams) EXCLUSIVE_LOCKS_REQUIRED(cs_main) ;
261
261
/* * Unload database information */
262
262
void UnloadBlockIndex ();
263
263
/* * Run an instance of the script checking thread */
@@ -436,7 +436,7 @@ inline CBlockIndex* LookupBlockIndex(const uint256& hash)
436
436
}
437
437
438
438
/* * Find the last common block between the parameter chain and a locator. */
439
- CBlockIndex* FindForkInGlobalIndex (const CChain& chain, const CBlockLocator& locator);
439
+ CBlockIndex* FindForkInGlobalIndex (const CChain& chain, const CBlockLocator& locator) EXCLUSIVE_LOCKS_REQUIRED(cs_main) ;
440
440
441
441
/* * Mark a block as precious and reorganize.
442
442
*
You can’t perform that action at this time.
0 commit comments