From 3807d70f09324a0fe47fe71147b9576554f86822 Mon Sep 17 00:00:00 2001 From: lateminer Date: Sun, 30 Sep 2018 18:50:59 +0300 Subject: [PATCH] Fix backporting errors in uptime RPC command --- src/rpc/server.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index f542f54f9..4c6a44f4a 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -273,10 +273,10 @@ UniValue stop(const UniValue& params, bool fHelp) return "Blackcoin server stopping"; } -UniValue uptime(const JSONRPCRequest& jsonRequest) +UniValue uptime(const UniValue& params, bool fHelp) { - if (jsonRequest.fHelp || jsonRequest.params.size() > 1) - throw std::runtime_error( + if (fHelp || params.size() > 1) + throw runtime_error( "uptime\n" "\nReturns the total uptime of the server.\n" "\nResult:\n"