diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-11-29 17:25:30 +1000 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-11-29 17:46:19 +1000 |
commit | c649637b6ccb270bd0160163e6e92c1456774286 (patch) | |
tree | 9aaf103937dfe8cd11e39be3845cfc8188125000 /src/main.cpp | |
parent | 207cfbfbf1ea21bd6cf8bb905b0908de339ef518 (diff) |
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 b6888f9750..ebb8633960 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)) |