mnb/mnp debugging

This commit is contained in:
Evan Duffield 2015-07-20 11:43:10 -07:00
parent aa996b2615
commit f36e4251ab

View File

@ -409,7 +409,7 @@ bool CMasternodeBroadcast::CheckInputsAndAdd(int& nDoS)
}
}
LogPrintf("mnb - Got NEW Masternode entry %s %s\n", addr.ToString(), vin.ToString());
LogPrintf("mnb - Got NEW Masternode entry - %s - %s - %s - %lli \n", GetHash().ToString(), addr.ToString(), vin.ToString(), sigTime);
CMasternode mn(*this);
mnodeman.Add(mn);
@ -514,6 +514,8 @@ bool CMasternodePing::CheckAndUpdate(int& nDos, bool fRequireEnabled)
return false;
}
if(fDebug) LogPrintf("CMasternodePing::CheckAndUpdate - New Ping - %s - %s - %lli\n", GetHash().ToString(), blockHash.ToString(), sigTime);
// see if we have this Masternode
CMasternode* pmn = mnodeman.Find(vin);
fRequireEnabled = (fRequireEnabled && pmn->IsEnabled()) || !fRequireEnabled;