Skip to content

Commit

Permalink
[RPC] Remove getinfo deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewbery committed Aug 6, 2018
1 parent 317477a commit b2f23c4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/rpc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
// --------------------- ------------------------ ----------------------- ----------
Expand All @@ -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)
Expand Down

0 comments on commit b2f23c4

Please sign in to comment.