File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ class CMainParams : public CChainParams {
141
141
142
142
fDefaultConsistencyChecks = false ;
143
143
fRequireStandard = true ;
144
- fMineBlocksOnDemand = false ;
145
144
146
145
checkpointData = {
147
146
{
@@ -247,7 +246,6 @@ class CTestNetParams : public CChainParams {
247
246
248
247
fDefaultConsistencyChecks = false ;
249
248
fRequireStandard = false ;
250
- fMineBlocksOnDemand = false ;
251
249
252
250
253
251
checkpointData = {
@@ -325,7 +323,6 @@ class CRegTestParams : public CChainParams {
325
323
326
324
fDefaultConsistencyChecks = true ;
327
325
fRequireStandard = false ;
328
- fMineBlocksOnDemand = true ;
329
326
330
327
checkpointData = {
331
328
{
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ class CChainParams
71
71
uint64_t AssumedBlockchainSize () const { return m_assumed_blockchain_size; }
72
72
/* * Minimum free space (in GB) needed for data directory when pruned; Does not include prune target*/
73
73
uint64_t AssumedChainStateSize () const { return m_assumed_chain_state_size; }
74
- /* * Make miner stop after a block is found. In RPC, don't return until nGenProcLimit blocks are generated */
75
- bool MineBlocksOnDemand () const { return fMineBlocksOnDemand ; }
74
+ /* * Whether it is possible to mine blocks on demand (no retargeting) */
75
+ bool MineBlocksOnDemand () const { return consensus. fPowNoRetargeting ; }
76
76
/* * Return the BIP70 network string (main, test or regtest) */
77
77
std::string NetworkIDString () const { return strNetworkID; }
78
78
/* * Return true if the fallback fee is by default enabled for this network */
@@ -101,7 +101,6 @@ class CChainParams
101
101
std::vector<SeedSpec6> vFixedSeeds;
102
102
bool fDefaultConsistencyChecks ;
103
103
bool fRequireStandard ;
104
- bool fMineBlocksOnDemand ;
105
104
CCheckpointData checkpointData;
106
105
ChainTxData chainTxData;
107
106
bool m_fallback_fee_enabled;
You can’t perform that action at this time.
0 commit comments