Make applicable only on mainnet
This commit is contained in:
parent
9d2974ed5b
commit
df46562f26
|
@ -401,10 +401,11 @@ static UniValue GetNetworksInfo()
|
|||
|
||||
UniValue getdeprecationinfo(const UniValue& params, bool fHelp)
|
||||
{
|
||||
if (fHelp || params.size() != 0)
|
||||
const CChainParams& chainparams = Params();
|
||||
if (fHelp || params.size() != 0 || chainparams.NetworkIDString() != "main")
|
||||
throw runtime_error(
|
||||
"getdeprecationinfo\n"
|
||||
"Returns an object containing current version and deprecation block height.\n"
|
||||
"Returns an object containing current version and deprecation block height. Applicable only on mainnet.\n"
|
||||
"\nResult:\n"
|
||||
"{\n"
|
||||
" \"version\": xxxxx, (numeric) the server version\n"
|
||||
|
@ -416,7 +417,6 @@ UniValue getdeprecationinfo(const UniValue& params, bool fHelp)
|
|||
+ HelpExampleRpc("getdeprecationinfo", "")
|
||||
);
|
||||
|
||||
|
||||
UniValue obj(UniValue::VOBJ);
|
||||
obj.push_back(Pair("version", CLIENT_VERSION));
|
||||
obj.push_back(Pair("subversion",
|
||||
|
|
Loading…
Reference in New Issue