From a33cffbeabcc42137c4a66aa19b7dd1d300e6d73 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Wed, 11 Mar 2020 16:32:06 +0100 Subject: [PATCH] util: HelpExampleRpc formatting fixup to conform to json-rpc spec as per https://www.jsonrpc.org/specification#examples --- src/rpc/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index a4e67c8da8..bb3d9f45ea 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -116,8 +116,8 @@ std::string HelpExampleCli(const std::string& methodname, const std::string& arg std::string HelpExampleRpc(const std::string& methodname, const std::string& args) { - return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", " - "\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n"; + return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", " + "\"method\": \"" + methodname + "\", \"params\": [" + args + "]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n"; } // Converts a hex string to a public key if possible