diff options
| author | Gavin Andresen <[email protected]> | 2013-11-29 17:25:30 +1000 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-11-29 17:46:19 +1000 |
| commit | c649637b6ccb270bd0160163e6e92c1456774286 (patch) | |
| tree | 9aaf103937dfe8cd11e39be3845cfc8188125000 /src/main.cpp | |
| parent | Merge pull request #3295 (diff) | |
| download | discoin-c649637b6ccb270bd0160163e6e92c1456774286.tar.xz discoin-c649637b6ccb270bd0160163e6e92c1456774286.zip | |
mutex debugging routines: LocksHeld() and AssertLockHeld()
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index b6888f975..ebb863396 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2215,6 +2215,8 @@ void PushGetBlocks(CNode* pnode, CBlockIndex* pindexBegin, uint256 hashEnd) bool ProcessBlock(CValidationState &state, CNode* pfrom, CBlock* pblock, CDiskBlockPos *dbp) { + AssertLockHeld("cs_main"); + // Check for duplicate uint256 hash = pblock->GetHash(); if (mapBlockIndex.count(hash)) |