From 0a297243806895a67d3ec93890355bd976605d75 Mon Sep 17 00:00:00 2001 From: pythonix <9782029+Pythonix@users.noreply.github.com> Date: Sat, 4 Nov 2023 09:43:54 +0100 Subject: [PATCH] Change capitalization, remove whitespace of rpc keys 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. --- src/rpc/blockchain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 538ce8c954..1ca483654a 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -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);