mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +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;
|
vRecv >> block;
|
||||||
|
|
||||||
TRY_LOCK(cs_main, lockMainBlock);
|
TRY_LOCK(cs_main, lockMainBlock);
|
||||||
if(!lockMainBlock) {
|
if(!lockMainBlock && masternodeSync.IsBlockchainSynced()) {
|
||||||
LogPrintf("block -- failed to lock cs_main - %s\n", block.GetHash().ToString());
|
LogPrintf("block -- failed to lock cs_main - %s\n", block.GetHash().ToString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user