From 19a5676280370148492cf59a5103584cf37893ac Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Thu, 19 Dec 2013 09:09:51 +0100 Subject: Use mutex pointer instead of name for AssertLockHeld This makes it useable for non-global locks such as the wallet and keystore locks. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d130e9705e..174c993453 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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(); -- cgit v1.2.3