Skip to content

Commit

Permalink
rpc: use snake_case for 'protx_list' verbose response json keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Jan 12, 2022
1 parent 4aa7bfd commit a0ef04e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rpc/rpcevo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,10 +737,10 @@ static void AddDMNEntryToList(UniValue& ret, CWallet* pwallet, const CDeterminis
UniValue o = DmnToJson(dmn);
int confs = WITH_LOCK(cs_main, return pcoinsTip->GetCoinDepthAtHeight(dmn->collateralOutpoint, chainActive.Height()); );
o.pushKV("confirmations", confs);
o.pushKV("hasOwnerKey", hasOwnerKey);
o.pushKV("hasVotingKey", hasVotingKey);
o.pushKV("ownsCollateral", ownsCollateral);
o.pushKV("ownsPayeeScript", ownsPayeeScript);
o.pushKV("has_owner_key", hasOwnerKey);
o.pushKV("has_voting_key", hasVotingKey);
o.pushKV("owns_collateral", ownsCollateral);
o.pushKV("owns_payee_script", ownsPayeeScript);
// net info
auto metaInfo = g_mmetaman.GetMetaInfo(dmn->proTxHash);
if (metaInfo) o.pushKV("metaInfo", ToJson(metaInfo));
Expand Down

0 comments on commit a0ef04e

Please sign in to comment.