Fix function name in log messages

This commit is contained in:
Tim Flynn 2016-11-14 15:28:46 -05:00
parent 31370decd7
commit aaf96c9a00

View File

@ -819,7 +819,7 @@ bool CGovernanceObject::ProcessVote(CNode* pfrom,
int nMNIndex = governance.GetMasternodeIndex(vote.GetVinMasternode()); int nMNIndex = governance.GetMasternodeIndex(vote.GetVinMasternode());
if(nMNIndex < 0) { if(nMNIndex < 0) {
std::ostringstream ostr; std::ostringstream ostr;
ostr << "CGovernanceObject::UpdateVote -- Masternode index not found\n"; ostr << "CGovernanceObject::ProcessVote -- Masternode index not found\n";
exception = CGovernanceException(ostr.str(), GOVERNANCE_EXCEPTION_WARNING); exception = CGovernanceException(ostr.str(), GOVERNANCE_EXCEPTION_WARNING);
if(mapOrphanVotes.Insert(vote.GetVinMasternode(), vote)) { if(mapOrphanVotes.Insert(vote.GetVinMasternode(), vote)) {
if(pfrom) { if(pfrom) {
@ -841,14 +841,14 @@ bool CGovernanceObject::ProcessVote(CNode* pfrom,
vote_signal_enum_t eSignal = vote.GetSignal(); vote_signal_enum_t eSignal = vote.GetSignal();
if(eSignal == VOTE_SIGNAL_NONE) { if(eSignal == VOTE_SIGNAL_NONE) {
std::ostringstream ostr; std::ostringstream ostr;
ostr << "CGovernanceObject::UpdateVote -- Vote signal: none" << "\n"; ostr << "CGovernanceObject::ProcessVote -- Vote signal: none" << "\n";
LogPrint("gobject", ostr.str().c_str()); LogPrint("gobject", ostr.str().c_str());
exception = CGovernanceException(ostr.str(), GOVERNANCE_EXCEPTION_WARNING); exception = CGovernanceException(ostr.str(), GOVERNANCE_EXCEPTION_WARNING);
return false; return false;
} }
if(eSignal > MAX_SUPPORTED_VOTE_SIGNAL) { if(eSignal > MAX_SUPPORTED_VOTE_SIGNAL) {
std::ostringstream ostr; std::ostringstream ostr;
ostr << "CGovernanceObject::UpdateVote -- Unsupported vote signal:" << CGovernanceVoting::ConvertSignalToString(vote.GetSignal()) << "\n"; ostr << "CGovernanceObject::ProcessVote -- Unsupported vote signal:" << CGovernanceVoting::ConvertSignalToString(vote.GetSignal()) << "\n";
LogPrintf(ostr.str().c_str()); LogPrintf(ostr.str().c_str());
exception = CGovernanceException(ostr.str(), GOVERNANCE_EXCEPTION_PERMANENT_ERROR, 20); exception = CGovernanceException(ostr.str(), GOVERNANCE_EXCEPTION_PERMANENT_ERROR, 20);
return false; return false;
@ -862,7 +862,7 @@ bool CGovernanceObject::ProcessVote(CNode* pfrom,
int64_t nTimeDelta = nNow - voteInstance.nTime; int64_t nTimeDelta = nNow - voteInstance.nTime;
if(nTimeDelta < GOVERNANCE_UPDATE_MIN) { if(nTimeDelta < GOVERNANCE_UPDATE_MIN) {
std::ostringstream ostr; std::ostringstream ostr;
ostr << "CGovernanceObject::UpdateVote -- Masternode voting too often " ostr << "CGovernanceObject::ProcessVote -- Masternode voting too often "
<< ", MN outpoint = " << vote.GetVinMasternode().prevout.ToStringShort() << ", MN outpoint = " << vote.GetVinMasternode().prevout.ToStringShort()
<< ", governance object hash = " << GetHash().ToString() << ", governance object hash = " << GetHash().ToString()
<< ", time delta = " << nTimeDelta << "\n"; << ", time delta = " << nTimeDelta << "\n";
@ -873,7 +873,7 @@ bool CGovernanceObject::ProcessVote(CNode* pfrom,
// Finally check that the vote is actually valid (done last because of cost of signature verification) // Finally check that the vote is actually valid (done last because of cost of signature verification)
if(!vote.IsValid(true)) { if(!vote.IsValid(true)) {
std::ostringstream ostr; std::ostringstream ostr;
ostr << "CGovernanceObject::UpdateVote -- Invalid vote " ostr << "CGovernanceObject::ProcessVote -- Invalid vote "
<< ", MN outpoint = " << vote.GetVinMasternode().prevout.ToStringShort() << ", MN outpoint = " << vote.GetVinMasternode().prevout.ToStringShort()
<< ", governance object hash = " << GetHash().ToString() << ", governance object hash = " << GetHash().ToString()
<< ", vote hash = " << vote.GetHash().ToString() << "\n"; << ", vote hash = " << vote.GetHash().ToString() << "\n";