Skip to content

Commit e3288a7

Browse files
crowning-schinzelh
authored andcommitted
[RFC] add ObjectType to first-level JSON result (#1352)
1 parent f59bd43 commit e3288a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpcgovernance.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ UniValue gobject(const UniValue& params, bool fHelp)
584584
bObj.push_back(Pair("DataString", pGovObj->GetDataAsString()));
585585
bObj.push_back(Pair("Hash", pGovObj->GetHash().ToString()));
586586
bObj.push_back(Pair("CollateralHash", pGovObj->GetCollateralHash().ToString()));
587+
bObj.push_back(Pair("ObjectType", pGovObj->GetObjectType()));
587588
bObj.push_back(Pair("CreationTime", pGovObj->GetCreationTime()));
588589
const CTxIn& masternodeVin = pGovObj->GetMasternodeVin();
589590
if(masternodeVin != CTxIn()) {
@@ -635,6 +636,7 @@ UniValue gobject(const UniValue& params, bool fHelp)
635636
objResult.push_back(Pair("DataString", pGovObj->GetDataAsString()));
636637
objResult.push_back(Pair("Hash", pGovObj->GetHash().ToString()));
637638
objResult.push_back(Pair("CollateralHash", pGovObj->GetCollateralHash().ToString()));
639+
objResult.push_back(Pair("ObjectType", pGovObj->GetObjectType()));
638640
objResult.push_back(Pair("CreationTime", pGovObj->GetCreationTime()));
639641
const CTxIn& masternodeVin = pGovObj->GetMasternodeVin();
640642
if(masternodeVin != CTxIn()) {

0 commit comments

Comments
 (0)