Skip to content

Commit 3c9b98b

Browse files
author
MarcoFalke
committed
Merge #14966: docs: fix testmempoolaccept CLI syntax
b74a521 fix testmempoolaccept CLI syntax (1Il1) Pull request description: `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). Tree-SHA512: ad755147d6db0bd3f2d8481517dab29df755a32b28a3bdb4553b1fddd1940850450d1e9a6c3bd04e4e3faa7bc09aadfd3412b4cd65e61d61ea34452831597967
2 parents ea0b199 + b74a521 commit 3c9b98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ static UniValue testmempoolaccept(const JSONRPCRequest& request)
11351135
"Sign the transaction, and get back the hex\n"
11361136
+ HelpExampleCli("signrawtransactionwithwallet", "\"myhex\"") +
11371137
"\nTest acceptance of the transaction (signed hex)\n"
1138-
+ HelpExampleCli("testmempoolaccept", "\"signedhex\"") +
1138+
+ HelpExampleCli("testmempoolaccept", "[\"signedhex\"]") +
11391139
"\nAs a JSON-RPC call\n"
11401140
+ HelpExampleRpc("testmempoolaccept", "[\"signedhex\"]")
11411141
);

0 commit comments

Comments
 (0)