mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
disable try-lock on IBD
This commit is contained in:
parent
e0031a807e
commit
c7077dc9d4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user