@@ -668,6 +668,18 @@ UniValue echo(const JSONRPCRequest& request)
668
668
return request.params ;
669
669
}
670
670
671
+ static UniValue getinfo_deprecated (const JSONRPCRequest& request)
672
+ {
673
+ throw JSONRPCError (RPC_METHOD_NOT_FOUND,
674
+ " getinfo\n "
675
+ " \n This call was removed in version 0.16.0. Use the appropriate fields from:\n "
676
+ " - getblockchaininfo: blocks, difficulty, chain\n "
677
+ " - getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings\n "
678
+ " - getwalletinfo: balance, keypoololdest, keypoolsize, paytxfee, unlocked_until, walletversion\n "
679
+ " \n bitcoin-cli has the option -getinfo to collect and format these in the old format."
680
+ );
681
+ }
682
+
671
683
static const CRPCCommand commands[] =
672
684
{ // category name actor (function) argNames
673
685
// --------------------- ------------------------ ----------------------- ----------
@@ -682,6 +694,7 @@ static const CRPCCommand commands[] =
682
694
{ " hidden" , " setmocktime" , &setmocktime, {" timestamp" }},
683
695
{ " hidden" , " echo" , &echo, {" arg0" ," arg1" ," arg2" ," arg3" ," arg4" ," arg5" ," arg6" ," arg7" ," arg8" ," arg9" }},
684
696
{ " hidden" , " echojson" , &echo, {" arg0" ," arg1" ," arg2" ," arg3" ," arg4" ," arg5" ," arg6" ," arg7" ," arg8" ," arg9" }},
697
+ { " hidden" , " getinfo" , &getinfo_deprecated, {}},
685
698
};
686
699
687
700
void RegisterMiscRPCCommands (CRPCTable &t)
0 commit comments