Skip to content

Commit

Permalink
Change capitalization, remove whitespace of rpc keys
Browse files Browse the repository at this point in the history
All other keys of this rpc command are written in lower case and the
space is replaced by an underscore. The rpc command is not really useful
for normal users and a consistent naming of the keys is better in my
opinion. Therefore I have adjusted these two keys.
  • Loading branch information
Pythonix committed Nov 4, 2023
1 parent 7557241 commit 0a29724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2957,11 +2957,11 @@ UniValue SuperblockReport(int lookback, bool displaycontract, std::string cpid)

if (cpid_parsed)
{
c.pushKV("Magnitude", superblock.m_cpids.MagnitudeOf(*cpid_parsed).Floating());
c.pushKV("magnitude", superblock.m_cpids.MagnitudeOf(*cpid_parsed).Floating());
}

if (displaycontract)
c.pushKV("Contract Contents", SuperblockToJson(superblock));
c.pushKV("contract_contents", SuperblockToJson(superblock));

results.push_back(c);

Expand Down

0 comments on commit 0a29724

Please sign in to comment.