From fa3c6511435149782545ac0d09d4722dc115d709 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 19 Apr 2019 13:19:20 -0400 Subject: [refactor] interfaces: Add missing LockAnnotation for cs_main --- src/validation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index 3cd64bc391..ad978f0e05 100644 --- a/src/validation.h +++ b/src/validation.h @@ -412,7 +412,7 @@ public: /** Replay blocks that aren't fully applied to the database. */ bool ReplayBlocks(const CChainParams& params, CCoinsView* view); -inline CBlockIndex* LookupBlockIndex(const uint256& hash) +inline CBlockIndex* LookupBlockIndex(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main) { AssertLockHeld(cs_main); BlockMap::const_iterator it = mapBlockIndex.find(hash); -- cgit v1.2.3