diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -445,7 +445,7 @@ } .Check(request); - if (!config.GetChainParams().MineBlocksOnDemand()) { + if (!config.GetChainParams().IsMockableChain()) { throw std::runtime_error( "setmocktime for regression testing (-regtest mode) only"); }