File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -283,13 +283,13 @@ class CRegTestParams : public CChainParams {
283
283
consensus.nMinerConfirmationWindow = 144 ; // Faster than normal for regtest (144 instead of 2016)
284
284
consensus.vDeployments [Consensus::DEPLOYMENT_TESTDUMMY].bit = 28 ;
285
285
consensus.vDeployments [Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0 ;
286
- consensus.vDeployments [Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 999999999999ULL ;
286
+ consensus.vDeployments [Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT ;
287
287
consensus.vDeployments [Consensus::DEPLOYMENT_CSV].bit = 0 ;
288
288
consensus.vDeployments [Consensus::DEPLOYMENT_CSV].nStartTime = 0 ;
289
- consensus.vDeployments [Consensus::DEPLOYMENT_CSV].nTimeout = 999999999999ULL ;
289
+ consensus.vDeployments [Consensus::DEPLOYMENT_CSV].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT ;
290
290
consensus.vDeployments [Consensus::DEPLOYMENT_SEGWIT].bit = 1 ;
291
291
consensus.vDeployments [Consensus::DEPLOYMENT_SEGWIT].nStartTime = 0 ;
292
- consensus.vDeployments [Consensus::DEPLOYMENT_SEGWIT].nTimeout = 999999999999ULL ;
292
+ consensus.vDeployments [Consensus::DEPLOYMENT_SEGWIT].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT ;
293
293
294
294
// The best chain should have at least this much work.
295
295
consensus.nMinimumChainWork = uint256S (" 0x00" );
Original file line number Diff line number Diff line change 7
7
#define BITCOIN_CONSENSUS_PARAMS_H
8
8
9
9
#include " uint256.h"
10
+ #include < limits>
10
11
#include < map>
11
12
#include < string>
12
13
@@ -31,6 +32,9 @@ struct BIP9Deployment {
31
32
int64_t nStartTime;
32
33
/* * Timeout/expiry MedianTime for the deployment attempt. */
33
34
int64_t nTimeout;
35
+
36
+ /* * Constant for nTimeout very far in the future. */
37
+ static constexpr int64_t NO_TIMEOUT = std::numeric_limits<int64_t >::max();
34
38
};
35
39
36
40
/* *
You can’t perform that action at this time.
0 commit comments