mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 11:32:46 +01:00
feat: hide deprecated RPC from help and add TODOes to remove them
This commit is contained in:
parent
05732aceaf
commit
59ddac5656
@ -365,6 +365,7 @@ static RPCHelpMan coinjoinsalt_set()
|
||||
}
|
||||
#endif // ENABLE_WALLET
|
||||
|
||||
// TODO: remove it completely
|
||||
static RPCHelpMan getpoolinfo()
|
||||
{
|
||||
return RPCHelpMan{"getpoolinfo",
|
||||
@ -469,7 +470,6 @@ void RegisterCoinJoinRPCCommands(CRPCTable &t)
|
||||
static const CRPCCommand commands[] =
|
||||
{ // category actor (function)
|
||||
// --------------------- -----------------------
|
||||
{ "dash", &getpoolinfo, },
|
||||
{ "dash", &getcoinjoininfo, },
|
||||
#ifdef ENABLE_WALLET
|
||||
{ "dash", &coinjoin, },
|
||||
@ -480,6 +480,8 @@ static const CRPCCommand commands[] =
|
||||
{ "dash", &coinjoinsalt_generate, },
|
||||
{ "dash", &coinjoinsalt_get, },
|
||||
{ "dash", &coinjoinsalt_set, },
|
||||
|
||||
{ "hidden", &getpoolinfo, },
|
||||
#endif // ENABLE_WALLET
|
||||
};
|
||||
// clang-format on
|
||||
|
@ -133,6 +133,7 @@ static UniValue GetNextMasternodeForPayment(const CChain& active_chain, CDetermi
|
||||
return obj;
|
||||
}
|
||||
|
||||
// TODO: drop it
|
||||
static RPCHelpMan masternode_winner()
|
||||
{
|
||||
return RPCHelpMan{"masternode winner",
|
||||
@ -153,6 +154,7 @@ static RPCHelpMan masternode_winner()
|
||||
};
|
||||
}
|
||||
|
||||
// TODO: drop it
|
||||
static RPCHelpMan masternode_current()
|
||||
{
|
||||
return RPCHelpMan{"masternode current",
|
||||
@ -226,7 +228,7 @@ static RPCHelpMan masternode_status()
|
||||
}
|
||||
|
||||
UniValue mnObj(UniValue::VOBJ);
|
||||
// keep compatibility with legacy status for now (might get deprecated/removed later)
|
||||
// keep compatibility with legacy status for now (TODO: get deprecated/removed later)
|
||||
mnObj.pushKV("outpoint", node.mn_activeman->GetOutPoint().ToStringShort());
|
||||
mnObj.pushKV("service", node.mn_activeman->GetService().ToStringAddrPort());
|
||||
auto dmn = CHECK_NONFATAL(node.dmnman)->GetListAtChainTip().GetMN(node.mn_activeman->GetProTxHash());
|
||||
@ -749,8 +751,8 @@ static const CRPCCommand commands[] =
|
||||
{ "dash", &masternode_status, },
|
||||
{ "dash", &masternode_payments, },
|
||||
{ "dash", &masternode_winners, },
|
||||
{ "dash", &masternode_current, },
|
||||
{ "dash", &masternode_winner, },
|
||||
{ "hidden", &masternode_current, },
|
||||
{ "hidden", &masternode_winner, },
|
||||
};
|
||||
// clang-format on
|
||||
for (const auto& command : commands) {
|
||||
|
@ -241,7 +241,7 @@ static RPCHelpMan getpeerinfo()
|
||||
obj.pushKV("masternode", stats.m_masternode_connection);
|
||||
if (fStateStats) {
|
||||
if (IsDeprecatedRPCEnabled("banscore")) {
|
||||
// banscore is deprecated in v21 for removal in v22
|
||||
// TODO: banscore is deprecated in v21 for removal in v22, maybe impossible due to usages in p2p_quorum_data.py
|
||||
obj.pushKV("banscore", statestats.m_misbehavior_score);
|
||||
}
|
||||
obj.pushKV("startingheight", statestats.m_starting_height);
|
||||
|
Loading…
Reference in New Issue
Block a user