diff options
author | Jon Atack <jon@atack.com> | 2020-03-11 16:32:06 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-03-11 16:32:15 +0100 |
commit | a33cffbeabcc42137c4a66aa19b7dd1d300e6d73 (patch) | |
tree | e5bc51195fb9eca743fae64212153528b206c436 /src/rpc/util.cpp | |
parent | d20d5dc824269fff45bb6fc9dbf1a6ce811b8559 (diff) |
util: HelpExampleRpc formatting fixup
to conform to json-rpc spec as per
https://www.jsonrpc.org/specification#examples
Diffstat (limited to 'src/rpc/util.cpp')
-rw-r--r-- | src/rpc/util.cpp | 4 |
1 files 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 |