Added more information to getvotes

This commit is contained in:
Evan Duffield 2015-07-17 07:38:35 -07:00
parent 6d966891dc
commit d60f3f6984

View File

@ -424,7 +424,14 @@ Value mnbudget(const Array& params, bool fHelp)
std::map<uint256, CBudgetVote>::iterator it = pbudgetProposal->mapVotes.begin(); std::map<uint256, CBudgetVote>::iterator it = pbudgetProposal->mapVotes.begin();
while(it != pbudgetProposal->mapVotes.end()){ while(it != pbudgetProposal->mapVotes.end()){
obj.push_back(Pair((*it).second.vin.prevout.ToStringShort().c_str(), (*it).second.GetVoteString().c_str()));
Object bObj;
bObj.push_back(Pair("Vote", (*it).second.GetVoteString().c_str()));
bObj.push_back(Pair("nTime", (int64_t)(*it).second.nTime));
bObj.push_back(Pair("fValid", (int64_t)(*it).second.fValid));
obj.push_back(Pair((*it).second.vin.prevout.ToStringShort().c_str(), bObj));
it++; it++;
} }