fix testmempoolaccept CLI syntax

`testmempoolaccept "hexstring"` will give a "JSON parse error". The correct syntax is `testmempoolaccept \[\"hexstring\"\]` (but seems escaping is not displayed in other areas so leaving backspaces out).

Github-Pull: #14966
Rebased-From: b74a52192b
This commit is contained in:
1Il1 2018-12-15 11:12:31 +09:00 committed by fanquake
parent fd616d8d08
commit b4602e3240
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -1212,7 +1212,7 @@ static UniValue testmempoolaccept(const JSONRPCRequest& request)
"Sign the transaction, and get back the hex\n"
+ HelpExampleCli("signrawtransaction", "\"myhex\"") +
"\nTest acceptance of the transaction (signed hex)\n"
+ HelpExampleCli("testmempoolaccept", "\"signedhex\"") +
+ HelpExampleCli("testmempoolaccept", "[\"signedhex\"]") +
"\nAs a json rpc call\n"
+ HelpExampleRpc("testmempoolaccept", "[\"signedhex\"]")
// clang-format on