Add compile time checking for all cs_main runtime locking assertions

This commit is contained in:
practicalswift
2018-08-13 13:24:52 +02:00
parent f6eb85d17c
commit 9e0a514112
13 changed files with 54 additions and 52 deletions

View File

@@ -4410,7 +4410,7 @@ bool CMerkleTx::IsImmatureCoinBase() const
return GetBlocksToMaturity() > 0;
}
bool CWalletTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state)
bool CWalletTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
{
// We must set fInMempool here - while it will be re-set to true by the
// entered-mempool callback, if we did not there would be a race where a