mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Add compile time checking for all cs_main runtime locking assertions
This commit is contained in:
@@ -90,7 +90,7 @@ static CBlockIndex CreateBlockIndex(int nHeight)
|
||||
return index;
|
||||
}
|
||||
|
||||
static bool TestSequenceLocks(const CTransaction &tx, int flags)
|
||||
static bool TestSequenceLocks(const CTransaction &tx, int flags) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
|
||||
{
|
||||
LOCK(mempool.cs);
|
||||
return CheckSequenceLocks(tx, flags);
|
||||
|
||||
Reference in New Issue
Block a user