aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/mining.cpp
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-06-19 16:49:38 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-07-03 11:36:35 +0900
commit0ab8ba1ac65b70f044a5e323b13d098cef33695a (patch)
treef9bbd13bd886985deed1bea82b6e91a4515af236 /src/rpc/mining.cpp
parente06067387e758e86f82b126867338faeb6220de7 (diff)
rpc: fix RPC help requirements for getblocktemplate
First argument is optional, and defaults to {mode:template}.
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r--src/rpc/mining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp
index 86b0845738..b3b567a31e 100644
--- a/src/rpc/mining.cpp
+++ b/src/rpc/mining.cpp
@@ -302,7 +302,7 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
" https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki#getblocktemplate_changes\n"
" https://github.com/bitcoin/bips/blob/master/bip-0145.mediawiki\n",
{
- {"template_request", RPCArg::Type::OBJ, RPCArg::Optional::NO, "A json object in the following spec",
+ {"template_request", RPCArg::Type::OBJ, "{}", "A json object in the following spec",
{
{"mode", RPCArg::Type::STR, /* treat as named arg */ RPCArg::Optional::OMITTED_NAMED_ARG, "This must be set to \"template\", \"proposal\" (see BIP 23), or omitted"},
{"capabilities", RPCArg::Type::ARR, /* treat as named arg */ RPCArg::Optional::OMITTED_NAMED_ARG, "A list of strings",