From e3288a7e142e811a2efb6335e379ca7b0befe1da Mon Sep 17 00:00:00 2001 From: crowning- Date: Sun, 19 Feb 2017 17:55:52 +0100 Subject: [PATCH] [RFC] add ObjectType to first-level JSON result (#1352) --- src/rpcgovernance.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpcgovernance.cpp b/src/rpcgovernance.cpp index 48249e205a..9a69311109 100644 --- a/src/rpcgovernance.cpp +++ b/src/rpcgovernance.cpp @@ -584,6 +584,7 @@ UniValue gobject(const UniValue& params, bool fHelp) bObj.push_back(Pair("DataString", pGovObj->GetDataAsString())); bObj.push_back(Pair("Hash", pGovObj->GetHash().ToString())); bObj.push_back(Pair("CollateralHash", pGovObj->GetCollateralHash().ToString())); + bObj.push_back(Pair("ObjectType", pGovObj->GetObjectType())); bObj.push_back(Pair("CreationTime", pGovObj->GetCreationTime())); const CTxIn& masternodeVin = pGovObj->GetMasternodeVin(); if(masternodeVin != CTxIn()) { @@ -635,6 +636,7 @@ UniValue gobject(const UniValue& params, bool fHelp) objResult.push_back(Pair("DataString", pGovObj->GetDataAsString())); objResult.push_back(Pair("Hash", pGovObj->GetHash().ToString())); objResult.push_back(Pair("CollateralHash", pGovObj->GetCollateralHash().ToString())); + objResult.push_back(Pair("ObjectType", pGovObj->GetObjectType())); objResult.push_back(Pair("CreationTime", pGovObj->GetCreationTime())); const CTxIn& masternodeVin = pGovObj->GetMasternodeVin(); if(masternodeVin != CTxIn()) {