fix deadlocks for MNVERIFY processing (#1173)

This commit is contained in:
UdjinM6 2016-11-30 04:48:05 +04:00 committed by GitHub
parent e3e5b81a8d
commit 6cd6722c08

View File

@ -813,7 +813,8 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
} 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;
vRecv >> mnv;