We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54a7ef6 commit 2455aa5Copy full SHA for 2455aa5
src/rpc/misc.cpp
@@ -345,8 +345,9 @@ static UniValue setmocktime(const JSONRPCRequest& request)
345
RPCExamples{""},
346
}.Check(request);
347
348
- if (!Params().MineBlocksOnDemand())
349
- throw std::runtime_error("setmocktime for regression testing (-regtest mode) only");
+ if (!Params().IsMockableChain()) {
+ throw std::runtime_error("setmocktime is for regression testing (-regtest mode) only");
350
+ }
351
352
// For now, don't change mocktime if we're in the middle of validation, as
353
// this could have an effect on mempool time-based eviction, as well as
0 commit comments