From b4602e324056391138a1a536bf15a45ebf5b0c61 Mon Sep 17 00:00:00 2001 From: 1Il1 <33648696+1Il1@users.noreply.github.com> Date: Sat, 15 Dec 2018 11:12:31 +0900 Subject: 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: b74a52192bcefea6fdc38f244e9500ce5868a0b5 --- src/rpc/rawtransaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 391e744c90..4258ce2e7f 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -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 -- cgit v1.2.3