added debugging

This commit is contained in:
Evan Duffield 2015-04-08 08:46:13 -07:00
parent 7d5948012b
commit 3f57ac1aea

View File

@ -810,10 +810,15 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
int nVote; int nVote;
vRecv >> vin >> vchSig >> nVote; vRecv >> vin >> vchSig >> nVote;
LogPrintf("mvote - Masternode vote %s \n", vin.ToString().c_str());
// see if we have this Masternode // see if we have this Masternode
CMasternode* pmn = this->Find(vin); CMasternode* pmn = this->Find(vin);
if(pmn != NULL) if(pmn != NULL)
{ {
LogPrintf("mvote - found %d %d \n", GetAdjustedTime(), pmn->lastVote);
if((GetAdjustedTime() - pmn->lastVote) > (60*60)) if((GetAdjustedTime() - pmn->lastVote) > (60*60))
{ {
std::string strMessage = vin.ToString() + boost::lexical_cast<std::string>(nVote); std::string strMessage = vin.ToString() + boost::lexical_cast<std::string>(nVote);
@ -836,6 +841,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
return; return;
} }
LogPrintf("mvote - end %s \n", vin.ToString().c_str());
} else if (strCommand == "dseg") { //Get Masternode list or specific entry } else if (strCommand == "dseg") { //Get Masternode list or specific entry