diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-09-25 20:58:30 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-01-05 11:30:20 +0100 |
commit | fba1a6150c1f7f9e3b407faefba4ccc710fe075e (patch) | |
tree | e1f0590fe8b8cda70c34cb971a9e0f012008eeff /src/rpc | |
parent | 286ec08cb0e5611bb062bc45d4b86df6d6ea801f (diff) |
rpc: Named arguments for misc calls
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/misc.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 13befb1089..4029e5e67c 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -506,16 +506,16 @@ UniValue echo(const JSONRPCRequest& request) static const CRPCCommand commands[] = { // category name actor (function) okSafeMode // --------------------- ------------------------ ----------------------- ---------- - { "control", "getinfo", &getinfo, true }, /* uses wallet if enabled */ - { "control", "getmemoryinfo", &getmemoryinfo, true }, - { "util", "validateaddress", &validateaddress, true }, /* uses wallet if enabled */ - { "util", "createmultisig", &createmultisig, true }, - { "util", "verifymessage", &verifymessage, true }, - { "util", "signmessagewithprivkey", &signmessagewithprivkey, true }, + { "control", "getinfo", &getinfo, true, {} }, /* uses wallet if enabled */ + { "control", "getmemoryinfo", &getmemoryinfo, true, {} }, + { "util", "validateaddress", &validateaddress, true, {"bitcoinaddress"} }, /* uses wallet if enabled */ + { "util", "createmultisig", &createmultisig, true, {"nrequired","keys"} }, + { "util", "verifymessage", &verifymessage, true, {"bitcoinaddress","signature","message"} }, + { "util", "signmessagewithprivkey", &signmessagewithprivkey, true, {"privkey","message"} }, /* Not shown in help */ - { "hidden", "setmocktime", &setmocktime, true }, - { "hidden", "echo", &echo, true, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}}, + { "hidden", "setmocktime", &setmocktime, true, {"timestamp"}}, + { "hidden", "echo", &echo, true, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}}, }; void RegisterMiscRPCCommands(CRPCTable &t) |