mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
added debugging
This commit is contained in:
parent
7d5948012b
commit
3f57ac1aea
@ -810,10 +810,15 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
|
||||
int nVote;
|
||||
vRecv >> vin >> vchSig >> nVote;
|
||||
|
||||
LogPrintf("mvote - Masternode vote %s \n", vin.ToString().c_str());
|
||||
|
||||
// see if we have this Masternode
|
||||
CMasternode* pmn = this->Find(vin);
|
||||
if(pmn != NULL)
|
||||
{
|
||||
|
||||
LogPrintf("mvote - found %d %d \n", GetAdjustedTime(), pmn->lastVote);
|
||||
|
||||
if((GetAdjustedTime() - pmn->lastVote) > (60*60))
|
||||
{
|
||||
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;
|
||||
}
|
||||
LogPrintf("mvote - end %s \n", vin.ToString().c_str());
|
||||
|
||||
} else if (strCommand == "dseg") { //Get Masternode list or specific entry
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user