rpc: Correctly name arguments

This commit is contained in:
Jon Layton
2018-11-13 13:42:36 -05:00
committed by MarcoFalke
parent c651265c93
commit fa0815c300
13 changed files with 33 additions and 32 deletions

View File

@@ -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"