File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ class CMainParams : public CChainParams {
135
135
fDefaultConsistencyChecks = false ;
136
136
fRequireStandard = true ;
137
137
m_is_test_chain = false ;
138
+ m_is_mockable_chain = false ;
138
139
139
140
checkpointData = {
140
141
{
@@ -231,7 +232,7 @@ class CTestNetParams : public CChainParams {
231
232
fDefaultConsistencyChecks = false ;
232
233
fRequireStandard = false ;
233
234
m_is_test_chain = true ;
234
-
235
+ m_is_mockable_chain = false ;
235
236
236
237
checkpointData = {
237
238
{
@@ -303,6 +304,7 @@ class CRegTestParams : public CChainParams {
303
304
fDefaultConsistencyChecks = true ;
304
305
fRequireStandard = true ;
305
306
m_is_test_chain = true ;
307
+ m_is_mockable_chain = true ;
306
308
307
309
checkpointData = {
308
310
{
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ class CChainParams
68
68
bool RequireStandard () const { return fRequireStandard ; }
69
69
/* * If this chain is exclusively used for testing */
70
70
bool IsTestChain () const { return m_is_test_chain; }
71
+ /* * If this chain allows time to be mocked */
72
+ bool IsMockableChain () const { return m_is_mockable_chain; }
71
73
uint64_t PruneAfterHeight () const { return nPruneAfterHeight; }
72
74
/* * Minimum free space (in GB) needed for data directory */
73
75
uint64_t AssumedBlockchainSize () const { return m_assumed_blockchain_size; }
@@ -102,6 +104,7 @@ class CChainParams
102
104
bool fDefaultConsistencyChecks ;
103
105
bool fRequireStandard ;
104
106
bool m_is_test_chain;
107
+ bool m_is_mockable_chain;
105
108
CCheckpointData checkpointData;
106
109
ChainTxData chainTxData;
107
110
};
You can’t perform that action at this time.
0 commit comments