Skip to content

Commit

Permalink
make mnw errors and ThreadCheckDarkSendPool less spammy
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jun 25, 2016
1 parent 3249a63 commit ec03753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/darksend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,6 @@ void ThreadCheckDarkSendPool()
while (true)
{
MilliSleep(1000);
//LogPrintf("ThreadCheckDarkSendPool::check timeout\n");

// try to sync from all available nodes, one step at a time
masternodeSync.Process();
Expand Down
8 changes: 4 additions & 4 deletions src/masternode-payments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void CMasternodePayments::ProcessMessage(CNode* pfrom, std::string& strCommand,

std::string strError = "";
if(!winner.IsValid(pfrom, strError)){
if(strError != "") LogPrintf("mnw - invalid message - %s\n", strError);
if(strError != "") LogPrint("mnpayments", "mnw - invalid message - %s\n", strError);
return;
}

Expand Down Expand Up @@ -471,15 +471,15 @@ bool CMasternodePaymentWinner::IsValid(CNode* pnode, std::string& strError)
if(!pmn)
{
strError = strprintf("Unknown Masternode %s", vinMasternode.prevout.ToStringShort());
LogPrintf ("CMasternodePaymentWinner::IsValid - %s\n", strError);
LogPrint("mnpayments", "CMasternodePaymentWinner::IsValid - %s\n", strError);
mnodeman.AskForMN(pnode, vinMasternode);
return false;
}

if(pmn->protocolVersion < MIN_MNW_PEER_PROTO_VERSION)
{
strError = strprintf("Masternode protocol too old %d - req %d", pmn->protocolVersion, MIN_MNW_PEER_PROTO_VERSION);
LogPrintf ("CMasternodePaymentWinner::IsValid - %s\n", strError);
LogPrint("mnpayments", "CMasternodePaymentWinner::IsValid - %s\n", strError);
return false;
}

Expand All @@ -492,7 +492,7 @@ bool CMasternodePaymentWinner::IsValid(CNode* pnode, std::string& strError)
if(n > MNPAYMENTS_SIGNATURES_TOTAL*2)
{
strError = strprintf("Masternode not in the top %d (%d)", MNPAYMENTS_SIGNATURES_TOTAL, n);
LogPrintf("CMasternodePaymentWinner::IsValid - %s\n", strError);
LogPrint("mnpayments", "CMasternodePaymentWinner::IsValid - %s\n", strError);
if(masternodeSync.IsSynced()) Misbehaving(pnode->GetId(), 20);
}
return false;
Expand Down

0 comments on commit ec03753

Please sign in to comment.