aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-11-29 17:25:30 +1000
committerGavin Andresen <gavinandresen@gmail.com>2013-11-29 17:46:19 +1000
commitc649637b6ccb270bd0160163e6e92c1456774286 (patch)
tree9aaf103937dfe8cd11e39be3845cfc8188125000 /src/main.cpp
parent207cfbfbf1ea21bd6cf8bb905b0908de339ef518 (diff)
mutex debugging routines: LocksHeld() and AssertLockHeld()
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
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))