| 242 | class CTestNetParams : public CChainParams { |
| 243 | public: |
| 244 | CTestNetParams() { |
| 245 | strNetworkID = "test"; |
| 246 | consensus.nSubsidyHalvingInterval = 210000; |
| 247 | consensus.BIP34Height = -1; |
| 248 | consensus.BIP34Hash = uint256(); |
| 249 | consensus.BIP65Height = -1; |
| 250 | consensus.BIP66Height = -1; |
| 251 | consensus.BTGHeight = 1; |
| 252 | consensus.BTGZawyLWMAHeight = -1; // Activated on testnet |
| 253 | consensus.BTGEquihashForkHeight = 14300; |
| 254 | consensus.BTGPremineWindow = 50; |
| 255 | consensus.BTGPremineEnforceWhitelist = false; |
| 256 | consensus.powLimit = uint256S("0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); |
| 257 | consensus.powLimitStart = uint256S("0007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); |
| 258 | consensus.powLimitLegacy = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); |
| 259 | |
| 260 | consensus.nDigishieldAveragingWindow = 30; |
| 261 | assert(maxUint/UintToArith256(consensus.powLimit) >= consensus.nDigishieldAveragingWindow); |
| 262 | consensus.nDigishieldMaxAdjustDown = 32; |
| 263 | consensus.nDigishieldMaxAdjustUp = 16; |
| 264 | |
| 265 | consensus.nZawyLwmaAveragingWindow = 45; |
| 266 | consensus.nZawyLwmaAdjustedWeightLegacy = 13632; |
| 267 | consensus.nZawyLwmaAdjustedWeight = 13772; |
| 268 | consensus.nZawyLwmaMinDenominatorLegacy = 3; |
| 269 | consensus.nZawyLwmaMinDenominator = 10; |
| 270 | consensus.bZawyLwmaSolvetimeLimitation = false; |
| 271 | consensus.BTGMaxFutureBlockTime = 7 * 10 * 60; // 70 mins |
| 272 | |
| 273 | consensus.nPowTargetTimespanLegacy = 14 * 24 * 60 * 60; // two weeks |
| 274 | consensus.nPowTargetSpacing = 10 * 60; |
| 275 | consensus.fPowAllowMinDifficultyBlocks = true; |
| 276 | consensus.fPowNoRetargeting = false; |
| 277 | consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains |
| 278 | consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespanLegacy / nPowTargetSpacing |
| 279 | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; |
| 280 | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008 |
| 281 | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008 |
| 282 | |
| 283 | // Deployment of BIP68, BIP112, and BIP113. |
| 284 | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0; |
| 285 | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 1514764800; // January 1st, 2018 |
| 286 | consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = 1546300800; // January 1st, 2019 |
| 287 | |
| 288 | // Deployment of SegWit (BIP141, BIP143, and BIP147) |
| 289 | consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1; |
| 290 | consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = 1514764800; // January 1st 2018 |
| 291 | consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 1546300800; // January 1st 2019 |
| 292 | |
| 293 | // The best chain should have at least this much work. |
| 294 | consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000000000000000000018469bad0"); |
| 295 | |
| 296 | // By default assume that the signatures in ancestors of this block are valid. |
| 297 | consensus.defaultAssumeValid = uint256S("0x000042e99d907f6a06dfc3e09499d6abe7cec3f665bffb2e297f5242ff948e60"); //38500 |
| 298 | |
| 299 | pchMessageStart[0] = 0xe2; |
| 300 | pchMessageStart[1] = 0x48; |
| 301 | pchMessageStart[2] = 0x6e; |
nothing calls this directly
no test coverage detected