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()
6565 return true ;
6666}
6767
68- static const CBlockIndex* NextSyncBlock (const CBlockIndex* pindex_prev)
68+ static const CBlockIndex* NextSyncBlock (const CBlockIndex* pindex_prev) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
6969{
7070 AssertLockHeld (cs_main);
7171
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ bool LoadGenesisBlock(const CChainParams& chainparams);
257257 * initializing state if we're running with -reindex. */
258258bool LoadBlockIndex (const CChainParams& chainparams) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
259259/* * 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) ;
261261/* * Unload database information */
262262void UnloadBlockIndex ();
263263/* * Run an instance of the script checking thread */
@@ -436,7 +436,7 @@ inline CBlockIndex* LookupBlockIndex(const uint256& hash)
436436}
437437
438438/* * 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) ;
440440
441441/* * Mark a block as precious and reorganize.
442442 *
You can’t perform that action at this time.
0 commit comments