fix: wrong name of argument for coinjoin

This commit is contained in:
Konstantin Akimov 2024-03-13 22:47:34 +07:00 committed by pasta
parent d0163543d9
commit b54f03a0c1
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -90,13 +90,16 @@ static RPCHelpMan coinjoin()
static RPCHelpMan getpoolinfo()
{
throw std::runtime_error(
RPCHelpMan{"getpoolinfo",
return RPCHelpMan{"getpoolinfo",
"DEPRECATED. Please use getcoinjoininfo instead.\n",
{},
RPCResults{},
RPCExamples{""}}
.ToString());
RPCExamples{""},
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
{
throw JSONRPCError(RPC_METHOD_DEPRECATED, "Please use getcoinjoininfo instead");
},
};
}
static RPCHelpMan getcoinjoininfo()
@ -188,7 +191,7 @@ static const CRPCCommand commands[] =
{ "dash", "getpoolinfo", &getpoolinfo, {} },
{ "dash", "getcoinjoininfo", &getcoinjoininfo, {} },
#ifdef ENABLE_WALLET
{ "dash", "coinjoin", &coinjoin, {} },
{ "dash", "coinjoin", &coinjoin, {"command"} },
#endif // ENABLE_WALLET
};
// clang-format on