fix deadlocks for MNVERIFY processing (#1173)
This commit is contained in:
parent
e3e5b81a8d
commit
6cd6722c08
@ -813,7 +813,8 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
|
|||||||
|
|
||||||
} else if (strCommand == NetMsgType::MNVERIFY) { // Masternode Verify
|
} else if (strCommand == NetMsgType::MNVERIFY) { // Masternode Verify
|
||||||
|
|
||||||
LOCK(cs);
|
// Need LOCK2 here to ensure consistent locking order because the all functions below call GetBlockHash which locks cs_main
|
||||||
|
LOCK2(cs_main, cs);
|
||||||
|
|
||||||
CMasternodeVerification mnv;
|
CMasternodeVerification mnv;
|
||||||
vRecv >> mnv;
|
vRecv >> mnv;
|
||||||
|
Loading…
Reference in New Issue
Block a user