MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CRegTestParams

Method CRegTestParams

src/chainparams.cpp:363–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361class CRegTestParams : public CChainParams {
362public:
363 CRegTestParams() {
364 strNetworkID = "regtest";
365 consensus.nSubsidyHalvingInterval = 150;
366 consensus.BIP16Exception = uint256();
367 consensus.BIP34Height = 100000000; // BIP34 has not activated on regtest (far in the future so block v1 are not rejected in tests)
368 consensus.BIP34Hash = uint256();
369 consensus.BIP65Height = 1351; // BIP65 activated on regtest (Used in rpc activation tests)
370 consensus.BIP66Height = 1251; // BIP66 activated on regtest (Used in rpc activation tests)
371 consensus.BTGHeight = 2000;
372 consensus.BTGZawyLWMAHeight = -1; // Activated on regtest
373 consensus.BTGEquihashForkHeight = 2001;
374 consensus.BTGPremineWindow = 10;
375 consensus.BTGPremineEnforceWhitelist = false;
376 consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
377 consensus.powLimitStart = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
378 consensus.powLimitLegacy = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
379
380 consensus.nDigishieldAveragingWindow = 30;
381 consensus.nDigishieldMaxAdjustDown = 32;
382 consensus.nDigishieldMaxAdjustUp = 16;
383
384 consensus.nZawyLwmaAveragingWindow = 45;
385 consensus.nZawyLwmaAdjustedWeightLegacy = 13772;
386 consensus.nZawyLwmaAdjustedWeight = 13772;
387 consensus.nZawyLwmaMinDenominatorLegacy = 10;
388 consensus.nZawyLwmaMinDenominator = 10;
389 consensus.bZawyLwmaSolvetimeLimitation = true;
390 consensus.BTGMaxFutureBlockTime = 7 * 10 * 60; // 70 mins
391
392 consensus.nPowTargetTimespanLegacy = 14 * 24 * 60 * 60; // two weeks
393 consensus.nPowTargetSpacing = 10 * 60;
394 consensus.fPowAllowMinDifficultyBlocks = true;
395 consensus.fPowNoRetargeting = true;
396 consensus.nRuleChangeActivationThreshold = 108; // 75% for testchains
397 consensus.nMinerConfirmationWindow = 144; // Faster than normal for regtest (144 instead of 2016)
398 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
399 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0;
400 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
401 consensus.vDeployments[Consensus::DEPLOYMENT_CSV].bit = 0;
402 consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nStartTime = 0;
403 consensus.vDeployments[Consensus::DEPLOYMENT_CSV].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
404 consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
405 consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = Consensus::BIP9Deployment::ALWAYS_ACTIVE;
406 consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
407
408 // The best chain should have at least this much work.
409 consensus.nMinimumChainWork = uint256S("0x00");
410
411 // By default assume that the signatures in ancestors of this block are valid.
412 consensus.defaultAssumeValid = uint256S("0x00");
413
414 pchMessageStart[0] = 0xfa;
415 pchMessageStart[1] = 0xbf;
416 pchMessageStart[2] = 0xb5;
417 pchMessageStart[3] = 0xda;
418
419 nDefaultPort = 18444;
420 nPruneAfterHeight = 1000;

Callers

nothing calls this directly

Calls 5

uint256SFunction · 0.85
CreateGenesisBlockFunction · 0.85
uint256Class · 0.70
GetHashMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected