mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +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;
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user