Skip to content

Commit a33cffb

Browse files
committed
util: HelpExampleRpc formatting fixup
to conform to json-rpc spec as per https://www.jsonrpc.org/specification#examples
1 parent d20d5dc commit a33cffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ std::string HelpExampleCli(const std::string& methodname, const std::string& arg
116116

117117
std::string HelpExampleRpc(const std::string& methodname, const std::string& args)
118118
{
119-
return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", "
120-
"\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n";
119+
return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", "
120+
"\"method\": \"" + methodname + "\", \"params\": [" + args + "]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n";
121121
}
122122

123123
// Converts a hex string to a public key if possible

0 commit comments

Comments
 (0)