mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-03 20:21:34 +02:00
[rpc] Remove deprecated getmininginfo RPC option
This commit is contained in:
@ -201,7 +201,6 @@ UniValue getmininginfo(const JSONRPCRequest& request)
|
||||
" \"pooledtx\": n (numeric) The size of the mempool\n"
|
||||
" \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n"
|
||||
" \"warnings\": \"...\" (string) any network and blockchain warnings\n"
|
||||
" \"errors\": \"...\" (string) DEPRECATED. Same as warnings. Only shown when bitcoind is started with -deprecatedrpc=getmininginfo\n"
|
||||
"}\n"
|
||||
"\nExamples:\n"
|
||||
+ HelpExampleCli("getmininginfo", "")
|
||||
@ -219,11 +218,7 @@ UniValue getmininginfo(const JSONRPCRequest& request)
|
||||
obj.push_back(Pair("networkhashps", getnetworkhashps(request)));
|
||||
obj.push_back(Pair("pooledtx", (uint64_t)mempool.size()));
|
||||
obj.push_back(Pair("chain", Params().NetworkIDString()));
|
||||
if (IsDeprecatedRPCEnabled("getmininginfo")) {
|
||||
obj.push_back(Pair("errors", GetWarnings("statusbar")));
|
||||
} else {
|
||||
obj.push_back(Pair("warnings", GetWarnings("statusbar")));
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user