Skip to content

Commit ef98e12

Browse files
committed
Merge #13891: [RPC] Remove getinfo deprecation warning
b2f23c4 [RPC] Remove getinfo deprecation warning (John Newbery) Pull request description: `getinfo` was removed in V0.16. A removal warning message was left in place to tell users that the method had been removed. We can remove that entirely in V0.18. Tree-SHA512: bf93fbcf57a9be480438dcbdcab2dfd69ce277218b10628776975b093b3ffd2caa1751e0fb4cb0245443c81465693e2b8750e96d3e38632a78bae5ffa04f9212
2 parents dc9d506 + b2f23c4 commit ef98e12

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)