diff options
author | fanquake <fanquake@gmail.com> | 2020-03-13 09:58:36 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-03-13 10:23:19 +0800 |
commit | 3f9e6a3c1ce8710364a815ac1796b45ccf1325b5 (patch) | |
tree | dd2ad62d62300d60493ddeac7156dab4cbc24701 /src/rpc | |
parent | e2d36639ca87b980b147047e4e47cf160b2c9406 (diff) | |
parent | a33cffbeabcc42137c4a66aa19b7dd1d300e6d73 (diff) |
Merge #18316: util: HelpExampleRpc formatting
a33cffbeabcc42137c4a66aa19b7dd1d300e6d73 util: HelpExampleRpc formatting fixup (Jon Atack)
Pull request description:
Minor visual fixup of the HelpExampleRpc template; conforms to the JSON-RPC spec as per https://www.jsonrpc.org/specification#examples. (I'm... somewhat embarassed to open such a minor change, but this is what is shown in all the CLI/RPC help docs.)
ACKs for top commit:
laanwj:
ACK a33cffbeabcc42137c4a66aa19b7dd1d300e6d73
Tree-SHA512: 8f1dee080c224742fff60a33fec6f5fb1d59c9fa51f3f2a67bf2e1837dbfa25f12a69e34518936588940013b0e61f55378b4f1a571c47c3cb081ca5b245e1091
Diffstat (limited to 'src/rpc')
-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 d3081bb97f..1a79b3d37e 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 |