Skip to content

Commit b2f23c4

Browse files
committed
[RPC] Remove getinfo deprecation warning
1 parent 317477a commit b2f23c4

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/rpc/misc.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -456,18 +456,6 @@ static UniValue echo(const JSONRPCRequest& request)
456456
return request.params;
457457
}
458458

459-
static UniValue getinfo_deprecated(const JSONRPCRequest& request)
460-
{
461-
throw JSONRPCError(RPC_METHOD_NOT_FOUND,
462-
"getinfo\n"
463-
"\nThis call was removed in version 0.16.0. Use the appropriate fields from:\n"
464-
"- getblockchaininfo: blocks, difficulty, chain\n"
465-
"- getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings\n"
466-
"- getwalletinfo: balance, keypoololdest, keypoolsize, paytxfee, unlocked_until, walletversion\n"
467-
"\nbitcoin-cli has the option -getinfo to collect and format these in the old format."
468-
);
469-
}
470-
471459
static const CRPCCommand commands[] =
472460
{ // category name actor (function) argNames
473461
// --------------------- ------------------------ ----------------------- ----------
@@ -482,7 +470,6 @@ static const CRPCCommand commands[] =
482470
{ "hidden", "setmocktime", &setmocktime, {"timestamp"}},
483471
{ "hidden", "echo", &echo, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
484472
{ "hidden", "echojson", &echo, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
485-
{ "hidden", "getinfo", &getinfo_deprecated, {}},
486473
};
487474

488475
void RegisterMiscRPCCommands(CRPCTable &t)

0 commit comments

Comments
 (0)