Skip to content

Commit 0ab8ba1

Browse files
committed
rpc: fix RPC help requirements for getblocktemplate
First argument is optional, and defaults to {mode:template}.
1 parent e060673 commit 0ab8ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/mining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
302302
" https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki#getblocktemplate_changes\n"
303303
" https://github.com/bitcoin/bips/blob/master/bip-0145.mediawiki\n",
304304
{
305-
{"template_request", RPCArg::Type::OBJ, RPCArg::Optional::NO, "A json object in the following spec",
305+
{"template_request", RPCArg::Type::OBJ, "{}", "A json object in the following spec",
306306
{
307307
{"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"},
308308
{"capabilities", RPCArg::Type::ARR, /* treat as named arg */ RPCArg::Optional::OMITTED_NAMED_ARG, "A list of strings",

0 commit comments

Comments
 (0)