diff --git a/doc/release-notes.md b/doc/release-notes.md --- a/doc/release-notes.md +++ b/doc/release-notes.md @@ -3,4 +3,4 @@ This release includes the following features and fixes: - - + - Removed deprecated `getinfo` RPC. diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -552,20 +552,6 @@ return request.params; } -static UniValue getinfo_deprecated(const Config &config, - const JSONRPCRequest &request) { - throw JSONRPCError(RPC_METHOD_NOT_FOUND, - "getinfo\n" - "\nThis call was removed in version 0.19.8. 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."); -} // clang-format off static const ContextFreeRPCCommand commands[] = { @@ -581,7 +567,6 @@ { "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, {}}, }; // clang-format on