There is a bug in MN signatures, ignore such MN but do not ban the peer we got this signature from (#847)

This commit is contained in:
UdjinM6 2016-06-01 08:05:33 +04:00 committed by Holger Schinzel
parent c7a6d2e904
commit 376c7d3498
2 changed files with 4 additions and 2 deletions

View File

@ -387,7 +387,8 @@ bool CMasternodeBroadcast::CheckAndUpdate(int& nDos)
std::string errorMessage = "";
if(!darkSendSigner.VerifyMessage(pubkey, sig, strMessage, errorMessage)){
LogPrintf("mnb - Got bad Masternode address signature\n");
nDos = 100;
// There is a bug in MN signatures, ignore such MN but do not ban the peer we got this from
// nDos = 100;
return false;
}

View File

@ -874,7 +874,8 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
std::string errorMessage = "";
if(!darkSendSigner.VerifyMessage(pubkey, vchSig, strMessage, errorMessage)){
LogPrintf("dsee - Got bad Masternode address signature\n");
Misbehaving(pfrom->GetId(), 100);
// There is a bug in MN signatures, ignore such MN but do not ban the peer we got this from
// Misbehaving(pfrom->GetId(), 100);
return;
}