aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/misc.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-08-06 10:50:50 -0400
committerJohn Newbery <john@johnnewbery.com>2018-08-06 11:20:27 -0400
commitb2f23c41538eaadd71c373ada75dd3a982eeb8bf (patch)
treea8229fb09f6ad1e983829fbe11d68a67d555a7d7 /src/rpc/misc.cpp
parent317477a2463a516d607649754d42c498110ce476 (diff)
[RPC] Remove getinfo deprecation warning
Diffstat (limited to 'src/rpc/misc.cpp')
-rw-r--r--src/rpc/misc.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp
index 09812bb980..c4df764c11 100644
--- a/src/rpc/misc.cpp
+++ b/src/rpc/misc.cpp
@@ -456,18 +456,6 @@ static UniValue echo(const JSONRPCRequest& request)
return request.params;
}
-static UniValue getinfo_deprecated(const JSONRPCRequest& request)
-{
- throw JSONRPCError(RPC_METHOD_NOT_FOUND,
- "getinfo\n"
- "\nThis call was removed in version 0.16.0. Use the appropriate fields from:\n"
- "- getblockchaininfo: blocks, difficulty, chain\n"
- "- getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings\n"
- "- getwalletinfo: balance, keypoololdest, keypoolsize, paytxfee, unlocked_until, walletversion\n"
- "\nbitcoin-cli has the option -getinfo to collect and format these in the old format."
- );
-}
-
static const CRPCCommand commands[] =
{ // category name actor (function) argNames
// --------------------- ------------------------ ----------------------- ----------
@@ -482,7 +470,6 @@ static const CRPCCommand commands[] =
{ "hidden", "setmocktime", &setmocktime, {"timestamp"}},
{ "hidden", "echo", &echo, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
{ "hidden", "echojson", &echo, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
- { "hidden", "getinfo", &getinfo_deprecated, {}},
};
void RegisterMiscRPCCommands(CRPCTable &t)