Skip to content

Commit b74a521

Browse files
authored
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).
1 parent 9133227 commit b74a521

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)