mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
merge bitcoin#16240: JSONRPCRequest-aware RPCHelpMan
This commit is contained in:
parent
21f5405e4a
commit
9e50d3a159
@ -1075,8 +1075,6 @@ static UniValue getspentinfo(const JSONRPCRequest& request)
|
||||
|
||||
static UniValue mockscheduler(const JSONRPCRequest& request)
|
||||
{
|
||||
if (request.fHelp || request.params.size() != 1)
|
||||
throw std::runtime_error(
|
||||
RPCHelpMan{"mockscheduler",
|
||||
"\nBump the scheduler into the future (-regtest only)\n",
|
||||
{
|
||||
@ -1084,7 +1082,7 @@ static UniValue mockscheduler(const JSONRPCRequest& request)
|
||||
},
|
||||
RPCResults{},
|
||||
RPCExamples{""},
|
||||
}.ToString());
|
||||
}.Check(request);
|
||||
|
||||
if (!Params().IsMockableChain()) {
|
||||
throw std::runtime_error("mockscheduler is for regression testing (-regtest mode) only");
|
||||
|
Loading…
Reference in New Issue
Block a user