Add compile time checking for cs_main locks which we assert at run time

This commit is contained in:
practicalswift
2018-10-10 11:28:43 +02:00
parent be992701b0
commit 0089905361
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ bool BaseIndex::Init()
return true;
}
static const CBlockIndex* NextSyncBlock(const CBlockIndex* pindex_prev)
static const CBlockIndex* NextSyncBlock(const CBlockIndex* pindex_prev) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
{
AssertLockHeld(cs_main);