From d60f3f69849f6199828c365434ca2407305a1817 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Fri, 17 Jul 2015 07:38:35 -0700 Subject: [PATCH] Added more information to getvotes --- src/rpcmasternode-budget.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/rpcmasternode-budget.cpp b/src/rpcmasternode-budget.cpp index 10653f2efc..a5f8cf6e18 100644 --- a/src/rpcmasternode-budget.cpp +++ b/src/rpcmasternode-budget.cpp @@ -424,7 +424,14 @@ Value mnbudget(const Array& params, bool fHelp) std::map::iterator it = pbudgetProposal->mapVotes.begin(); 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++; }