From c649637b6ccb270bd0160163e6e92c1456774286 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Fri, 29 Nov 2013 17:25:30 +1000 Subject: mutex debugging routines: LocksHeld() and AssertLockHeld() --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.cpp') 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)) -- cgit v1.2.3