Skip to content

Commit fba1a61

Browse files
committed
rpc: Named arguments for misc calls
1 parent 286ec08 commit fba1a61

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/rpc/misc.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -506,16 +506,16 @@ UniValue echo(const JSONRPCRequest& request)
506506
static const CRPCCommand commands[] =
507507
{ // category name actor (function) okSafeMode
508508
// --------------------- ------------------------ ----------------------- ----------
509-
{ "control", "getinfo", &getinfo, true }, /* uses wallet if enabled */
510-
{ "control", "getmemoryinfo", &getmemoryinfo, true },
511-
{ "util", "validateaddress", &validateaddress, true }, /* uses wallet if enabled */
512-
{ "util", "createmultisig", &createmultisig, true },
513-
{ "util", "verifymessage", &verifymessage, true },
514-
{ "util", "signmessagewithprivkey", &signmessagewithprivkey, true },
509+
{ "control", "getinfo", &getinfo, true, {} }, /* uses wallet if enabled */
510+
{ "control", "getmemoryinfo", &getmemoryinfo, true, {} },
511+
{ "util", "validateaddress", &validateaddress, true, {"bitcoinaddress"} }, /* uses wallet if enabled */
512+
{ "util", "createmultisig", &createmultisig, true, {"nrequired","keys"} },
513+
{ "util", "verifymessage", &verifymessage, true, {"bitcoinaddress","signature","message"} },
514+
{ "util", "signmessagewithprivkey", &signmessagewithprivkey, true, {"privkey","message"} },
515515

516516
/* Not shown in help */
517-
{ "hidden", "setmocktime", &setmocktime, true },
518-
{ "hidden", "echo", &echo, true, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
517+
{ "hidden", "setmocktime", &setmocktime, true, {"timestamp"}},
518+
{ "hidden", "echo", &echo, true, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
519519
};
520520

521521
void RegisterMiscRPCCommands(CRPCTable &t)

0 commit comments

Comments
 (0)