diff options
| author | 1Il1 <[email protected]> | 2018-12-15 11:12:31 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-12-15 11:12:31 +0900 |
| commit | b74a52192bcefea6fdc38f244e9500ce5868a0b5 (patch) | |
| tree | 646c28a20df11e99470d8c59e9d76c2749b46888 /src/rpc/rawtransaction.cpp | |
| parent | Merge #14935: tests: Test for expected return values when calling functions r... (diff) | |
| download | discoin-b74a52192bcefea6fdc38f244e9500ce5868a0b5.tar.xz discoin-b74a52192bcefea6fdc38f244e9500ce5868a0b5.zip | |
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).
Diffstat (limited to 'src/rpc/rawtransaction.cpp')
| -rw-r--r-- | src/rpc/rawtransaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 370ae8e4d..20bc72f51 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -1135,7 +1135,7 @@ static UniValue testmempoolaccept(const JSONRPCRequest& request) "Sign the transaction, and get back the hex\n" + HelpExampleCli("signrawtransactionwithwallet", "\"myhex\"") + "\nTest acceptance of the transaction (signed hex)\n" - + HelpExampleCli("testmempoolaccept", "\"signedhex\"") + + + HelpExampleCli("testmempoolaccept", "[\"signedhex\"]") + "\nAs a JSON-RPC call\n" + HelpExampleRpc("testmempoolaccept", "[\"signedhex\"]") ); |