mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Fix CMasternodeMan::ProcessVerify* logs (#1782)
Fixes these issues: - wrong function name - wrong addr - too spammy - typo
This commit is contained in:
parent
63e3061487
commit
86e6f0dd23
@ -1200,11 +1200,12 @@ void CMasternodeMan::ProcessVerifyReply(CNode* pnode, CMasternodeVerification& m
|
||||
// increase ban score for everyone else
|
||||
BOOST_FOREACH(CMasternode* pmn, vpMasternodesToBan) {
|
||||
pmn->IncreasePoSeBanScore();
|
||||
LogPrint("masternode", "CMasternodeMan::ProcessVerifyBroadcast -- increased PoSe ban score for %s addr %s, new score %d\n",
|
||||
LogPrint("masternode", "CMasternodeMan::ProcessVerifyReply -- increased PoSe ban score for %s addr %s, new score %d\n",
|
||||
prealMasternode->vin.prevout.ToStringShort(), pnode->addr.ToString(), pmn->nPoSeBanScore);
|
||||
}
|
||||
LogPrintf("CMasternodeMan::ProcessVerifyBroadcast -- PoSe score increased for %d fake masternodes, addr %s\n",
|
||||
(int)vpMasternodesToBan.size(), pnode->addr.ToString());
|
||||
if(!vpMasternodesToBan.empty())
|
||||
LogPrintf("CMasternodeMan::ProcessVerifyReply -- PoSe score increased for %d fake masternodes, addr %s\n",
|
||||
(int)vpMasternodesToBan.size(), pnode->addr.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
@ -1275,7 +1276,7 @@ void CMasternodeMan::ProcessVerifyBroadcast(CNode* pnode, const CMasternodeVerif
|
||||
}
|
||||
|
||||
if(pmn1->addr != mnv.addr) {
|
||||
LogPrintf("CMasternodeMan::ProcessVerifyBroadcast -- addr %s do not match %s\n", mnv.addr.ToString(), pnode->addr.ToString());
|
||||
LogPrintf("CMasternodeMan::ProcessVerifyBroadcast -- addr %s does not match %s\n", mnv.addr.ToString(), pmn1->addr.ToString());
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1295,7 +1296,7 @@ void CMasternodeMan::ProcessVerifyBroadcast(CNode* pnode, const CMasternodeVerif
|
||||
mnv.Relay();
|
||||
|
||||
LogPrintf("CMasternodeMan::ProcessVerifyBroadcast -- verified masternode %s for addr %s\n",
|
||||
pmn1->vin.prevout.ToStringShort(), pnode->addr.ToString());
|
||||
pmn1->vin.prevout.ToStringShort(), pmn1->addr.ToString());
|
||||
|
||||
// increase ban score for everyone else with the same addr
|
||||
int nCount = 0;
|
||||
@ -1306,8 +1307,9 @@ void CMasternodeMan::ProcessVerifyBroadcast(CNode* pnode, const CMasternodeVerif
|
||||
LogPrint("masternode", "CMasternodeMan::ProcessVerifyBroadcast -- increased PoSe ban score for %s addr %s, new score %d\n",
|
||||
mnpair.first.ToStringShort(), mnpair.second.addr.ToString(), mnpair.second.nPoSeBanScore);
|
||||
}
|
||||
LogPrintf("CMasternodeMan::ProcessVerifyBroadcast -- PoSe score incresed for %d fake masternodes, addr %s\n",
|
||||
nCount, pnode->addr.ToString());
|
||||
if(nCount)
|
||||
LogPrintf("CMasternodeMan::ProcessVerifyBroadcast -- PoSe score increased for %d fake masternodes, addr %s\n",
|
||||
nCount, pmn1->addr.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user