diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-12-19 09:09:51 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-12-19 09:46:11 +0100 |
| commit | 19a5676280370148492cf59a5103584cf37893ac (patch) | |
| tree | cc3212d12ff9799fc0d5633b289d1832cb0915d0 /src/main.cpp | |
| parent | Remove ui_interface ThreadSafeAskFee residue (diff) | |
| download | discoin-19a5676280370148492cf59a5103584cf37893ac.tar.xz discoin-19a5676280370148492cf59a5103584cf37893ac.zip | |
Use mutex pointer instead of name for AssertLockHeld
This makes it useable for non-global locks such as the wallet and
keystore locks.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index d130e9705..174c99345 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(); |