| 96 | class CMainParams : public CChainParams { |
| 97 | public: |
| 98 | CMainParams() { |
| 99 | strNetworkID = "main"; |
| 100 | consensus.nSubsidyHalvingInterval = 210000; |
| 101 | consensus.BIP16Exception = uint256S("0x00000000000002dc756eebf4f49723ed8d30cc28a5f108eb94b1ba88ac4f9c22"); |
| 102 | consensus.BIP34Height = 227931; |
| 103 | consensus.BIP34Hash = uint256S("0x000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8"); |
| 104 | consensus.BIP65Height = 388381; // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0 |
| 105 | consensus.BIP66Height = 363725; // 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931 |
| 106 | consensus.BTGHeight = 491407; // Around 10/25/2017 12:00 UTC |
| 107 | consensus.BTGPremineWindow = 8000; |
| 108 | consensus.BTGZawyLWMAHeight = 536200; // Around 07/01/2018 |
| 109 | consensus.BTGEquihashForkHeight = 536200; // Around 07/01/2018 |
| 110 | consensus.BTGPremineEnforceWhitelist = true; |
| 111 | consensus.powLimit = uint256S("0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); |
| 112 | consensus.powLimitStart = uint256S("0000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); |
| 113 | consensus.powLimitLegacy = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); |
| 114 | |
| 115 | consensus.nDigishieldAveragingWindow = 30; |
| 116 | assert(maxUint/UintToArith256(consensus.powLimit) >= consensus.nDigishieldAveragingWindow); |
| 117 | consensus.nDigishieldMaxAdjustDown = 32; |
| 118 | consensus.nDigishieldMaxAdjustUp = 16; |
| 119 | |
| 120 | consensus.nZawyLwmaAveragingWindow = 45; |
| 121 | consensus.nZawyLwmaAdjustedWeightLegacy = 13772; |
| 122 | consensus.nZawyLwmaAdjustedWeight = 13772; |
| 123 | consensus.nZawyLwmaMinDenominatorLegacy = 10; |
| 124 | consensus.nZawyLwmaMinDenominator = 10; |
| 125 | consensus.bZawyLwmaSolvetimeLimitation = true; |
| 126 | consensus.BTGMaxFutureBlockTime = 12 * 10 * 60; // 120 mins |
| 127 | |
| 128 | consensus.nPowTargetTimespanLegacy = 14 * 24 * 60 * 60; // 10 minutes |
| 129 | consensus.nPowTargetSpacing = 10 * 60; |
| 130 | consensus.fPowAllowMinDifficultyBlocks = false; |
| 131 | consensus.fPowNoRetargeting = false; |
| 132 | consensus.nRuleChangeActivationThreshold = 1916; // 95% of 2016 |
| 133 | consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespanLegacy / nPowTargetSpacing |
| 134 | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; |
| 135 | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008 |
| 136 | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008 |
| 137 | |
| 138 | // Deployment of BIP68, BIP112, and BIP113. |
| 139 | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0; |
| 140 | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1462060800; // May 1st, 2016 |
| 141 | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1493596800; // May 1st, 2017 |
| 142 | |
| 143 | // Deployment of SegWit (BIP141, BIP143, and BIP147) |
| 144 | consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1; |
| 145 | consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1479168000; // November 15th, 2016. |
| 146 | consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1510704000; // November 15th, 2017. |
| 147 | |
| 148 | // The best chain should have at least this much work. |
| 149 | consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000000a21782bdfbc18847452a68"); |
| 150 | |
| 151 | // By default assume that the signatures in ancestors of this block are valid. |
| 152 | consensus.defaultAssumeValid = uint256S("0x00000001ddb50bf6de8012bf8cd15bebc278c7e75ce5f77409ab78a291bd7e36"); //566000 |
| 153 | |
| 154 | /** |
| 155 | * The message start string is designed to be unlikely to occur in normal data. |
nothing calls this directly
no test coverage detected