mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#16240: JSONRPCRequest-aware RPCHelpMan
This commit is contained in:
parent
21f5405e4a
commit
9e50d3a159
@ -1075,16 +1075,14 @@ 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",
|
||||
RPCHelpMan{"mockscheduler",
|
||||
"\nBump the scheduler into the future (-regtest only)\n",
|
||||
{
|
||||
{"delta_time", RPCArg::Type::NUM, RPCArg::Optional::NO, "Number of seconds to forward the scheduler into the future." },
|
||||
},
|
||||
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