Add compile time checking for all ::mempool.cs runtime locking assertions

This commit is contained in:
practicalswift
2018-04-25 22:57:18 +02:00
parent f82e1c9482
commit cbba1d2da4
3 changed files with 5 additions and 5 deletions

View File

@@ -383,7 +383,7 @@ static std::string EntryDescriptionString()
" ... ]\n";
}
static void entryToJSON(UniValue &info, const CTxMemPoolEntry &e)
static void entryToJSON(UniValue &info, const CTxMemPoolEntry &e) EXCLUSIVE_LOCKS_REQUIRED(::mempool.cs)
{
AssertLockHeld(mempool.cs);