Use mutex pointer instead of name for AssertLockHeld

This makes it useable for non-global locks such as the wallet and
keystore locks.
This commit is contained in:
Wladimir J. van der Laan
2013-12-19 09:09:51 +01:00
parent 636a42bd0e
commit 19a5676280
3 changed files with 7 additions and 6 deletions

View File

@@ -2238,7 +2238,7 @@ void PushGetBlocks(CNode* pnode, CBlockIndex* pindexBegin, uint256 hashEnd)
bool ProcessBlock(CValidationState &state, CNode* pfrom, CBlock* pblock, CDiskBlockPos *dbp)
{
AssertLockHeld("cs_main");
AssertLockHeld(cs_main);
// Check for duplicate
uint256 hash = pblock->GetHash();