Skip to content

Commit

Permalink
sentinel uses status of funding votes (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeplin authored and UdjinM6 committed Apr 23, 2017
1 parent 559f842 commit 411332f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/rpcgovernance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,11 @@ UniValue gobject(const UniValue& params, bool fHelp)
bObj.push_back(Pair("SigningMasternode", masternodeVin.prevout.ToStringShort()));
}

// REPORT STATUS FOR FUNDING VOTES SPECIFICALLY, EXCEPT WATCHDOGS
if(pGovObj->GetObjectType() != GOVERNANCE_OBJECT_WATCHDOG) {
bObj.push_back(Pair("AbsoluteYesCount", pGovObj->GetAbsoluteYesCount(VOTE_SIGNAL_FUNDING)));
bObj.push_back(Pair("YesCount", pGovObj->GetYesCount(VOTE_SIGNAL_FUNDING)));
bObj.push_back(Pair("NoCount", pGovObj->GetNoCount(VOTE_SIGNAL_FUNDING)));
bObj.push_back(Pair("AbstainCount", pGovObj->GetAbstainCount(VOTE_SIGNAL_FUNDING)));
}
// REPORT STATUS FOR FUNDING VOTES SPECIFICALLY
bObj.push_back(Pair("AbsoluteYesCount", pGovObj->GetAbsoluteYesCount(VOTE_SIGNAL_FUNDING)));
bObj.push_back(Pair("YesCount", pGovObj->GetYesCount(VOTE_SIGNAL_FUNDING)));
bObj.push_back(Pair("NoCount", pGovObj->GetNoCount(VOTE_SIGNAL_FUNDING)));
bObj.push_back(Pair("AbstainCount", pGovObj->GetAbstainCount(VOTE_SIGNAL_FUNDING)));

// REPORT VALIDITY AND CACHING FLAGS FOR VARIOUS SETTINGS
std::string strError = "";
Expand Down

0 comments on commit 411332f

Please sign in to comment.