Skip to content

Commit

Permalink
Allow MineBlocksOnDemand on mocknet (#1638)
Browse files Browse the repository at this point in the history
* Allow setmocktime on mocknet

* Revert "Allow setmocktime on mocknet"

This reverts commit cc8302e.

* MineBlocksOnDemand on mocknet
  • Loading branch information
Jouzo committed Jul 15, 2024
1 parent 2352c26 commit ab44fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chainparams.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ab44fbd

Please sign in to comment.