From c7077dc9d42c7930147e9385e0a883bbf1d4e2fa Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Mon, 3 Aug 2015 12:05:19 -0700 Subject: [PATCH] disable try-lock on IBD --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 08f0a24e05..adeabc4e43 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4885,7 +4885,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, vRecv >> block; TRY_LOCK(cs_main, lockMainBlock); - if(!lockMainBlock) { + if(!lockMainBlock && masternodeSync.IsBlockchainSynced()) { LogPrintf("block -- failed to lock cs_main - %s\n", block.GetHash().ToString()); return false; }