Move cs_main locking annotations from .cpp to .h

This commit is contained in:
practicalswift
2018-08-26 00:56:09 +02:00
parent 91186e5984
commit 9e2de6b9d0
3 changed files with 4 additions and 3 deletions

View File

@@ -4410,7 +4410,7 @@ bool CMerkleTx::IsImmatureCoinBase() const
return GetBlocksToMaturity() > 0;
}
bool CWalletTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
bool CWalletTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state)
{
// 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