File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ class CMainParams : public CChainParams {
151
151
vFixedSeeds = std::vector<uint8_t >(std::begin (chainparams_seed_main), std::end (chainparams_seed_main));
152
152
153
153
fDefaultConsistencyChecks = false ;
154
- m_is_test_chain = false ;
155
154
m_is_mockable_chain = false ;
156
155
157
156
checkpointData = {
@@ -258,7 +257,6 @@ class CTestNetParams : public CChainParams {
258
257
vFixedSeeds = std::vector<uint8_t >(std::begin (chainparams_seed_test), std::end (chainparams_seed_test));
259
258
260
259
fDefaultConsistencyChecks = false ;
261
- m_is_test_chain = true ;
262
260
m_is_mockable_chain = false ;
263
261
264
262
checkpointData = {
@@ -380,7 +378,6 @@ class SigNetParams : public CChainParams {
380
378
bech32_hrp = " tb" ;
381
379
382
380
fDefaultConsistencyChecks = false ;
383
- m_is_test_chain = true ;
384
381
m_is_mockable_chain = false ;
385
382
}
386
383
};
@@ -471,7 +468,6 @@ class CRegTestParams : public CChainParams
471
468
vSeeds.emplace_back (" dummySeed.invalid." );
472
469
473
470
fDefaultConsistencyChecks = true ;
474
- m_is_test_chain = true ;
475
471
m_is_mockable_chain = true ;
476
472
477
473
checkpointData = {
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class CChainParams
103
103
/* * Default value for -checkmempool and -checkblockindex argument */
104
104
bool DefaultConsistencyChecks () const { return fDefaultConsistencyChecks ; }
105
105
/* * If this chain is exclusively used for testing */
106
- bool IsTestChain () const { return m_is_test_chain ; }
106
+ bool IsTestChain () const { return m_chain_type != ChainType::MAIN ; }
107
107
/* * If this chain allows time to be mocked */
108
108
bool IsMockableChain () const { return m_is_mockable_chain; }
109
109
uint64_t PruneAfterHeight () const { return nPruneAfterHeight; }
@@ -177,7 +177,6 @@ class CChainParams
177
177
CBlock genesis;
178
178
std::vector<uint8_t > vFixedSeeds;
179
179
bool fDefaultConsistencyChecks ;
180
- bool m_is_test_chain;
181
180
bool m_is_mockable_chain;
182
181
CCheckpointData checkpointData;
183
182
MapAssumeutxo m_assumeutxo_data;
You can’t perform that action at this time.
0 commit comments