diff options
| author | Gavin Andresen <[email protected]> | 2013-12-01 17:43:37 -0800 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-12-01 17:43:37 -0800 |
| commit | a65edb104d0168b55aaa0ebf6fc46c76b0ce288b (patch) | |
| tree | 7c5ab6747e71cf4ab8cc275a4e6a579f08576d2f /src/main.cpp | |
| parent | Merge pull request #3306 (diff) | |
| parent | mutex debugging routines: LocksHeld() and AssertLockHeld() (diff) | |
| download | discoin-a65edb104d0168b55aaa0ebf6fc46c76b0ce288b.tar.xz discoin-a65edb104d0168b55aaa0ebf6fc46c76b0ce288b.zip | |
Merge pull request #3329 from gavinandresen/syncdebug
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 457fc941e..eb3af5bea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2176,6 +2176,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)) |