diff --git a/src/chainparams.h b/src/chainparams.h index a6db21aea2..c9755b7698 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -80,7 +80,7 @@ class CChainParams /** Minimum free space (in GB) needed for data directory when pruned; Does not include prune target*/ uint64_t AssumedChainStateSize() const { return m_assumed_chain_state_size; } /** Whether it is possible to mine blocks on demand (no retargeting) */ - bool MineBlocksOnDemand() const { return consensus.pos.fNoRetargeting; } + bool MineBlocksOnDemand() const { return consensus.pos.fNoRetargeting || fMockNetwork; } /** Return the BIP70 network string (main, test or regtest) */ std::string NetworkIDString() const { return strNetworkID; } /** Return the list of hostnames to look up for DNS seeds */