aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.cpp
diff options
context:
space:
mode:
authorJon Layton <me@jonl.io>2018-11-13 13:42:36 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-11-13 14:24:40 -0500
commitfa0815c3005c861ba94b96412e7997c25e7f6788 (patch)
tree2208715a790996a7427ee730b1b60fed3d6c69a3 /src/rpc/server.cpp
parentc651265c934c84c683aa054f2a456b12acc41590 (diff)
rpc: Correctly name arguments
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r--src/rpc/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index 9d2c6ca0a6..f890baba51 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -235,7 +235,7 @@ UniValue stop(const JSONRPCRequest& jsonRequest)
static UniValue uptime(const JSONRPCRequest& jsonRequest)
{
- if (jsonRequest.fHelp || jsonRequest.params.size() > 1)
+ if (jsonRequest.fHelp || jsonRequest.params.size() > 0)
throw std::runtime_error(
"uptime\n"
"\nReturns the total uptime of the server.\n"