Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
consensus.CSVHeight = 419328; | consensus.CSVHeight = 419328; | ||||
consensus.powLimit = uint256S( | consensus.powLimit = uint256S( | ||||
"00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | ||||
// two weeks | // two weeks | ||||
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | ||||
consensus.nPowTargetSpacing = 10 * 60; | consensus.nPowTargetSpacing = 10 * 60; | ||||
consensus.fPowAllowMinDifficultyBlocks = false; | consensus.fPowAllowMinDifficultyBlocks = false; | ||||
consensus.fPowNoRetargeting = false; | consensus.fPowNoRetargeting = false; | ||||
// 95% of 2016 | |||||
consensus.nRuleChangeActivationThreshold = 1916; | |||||
// nPowTargetTimespan / nPowTargetSpacing | |||||
consensus.nMinerConfirmationWindow = 2016; | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; | |||||
// January 1, 2008 | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = | |||||
1199145601; | |||||
// December 31, 2008 | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = | |||||
1230767999; | |||||
// The best chain should have at least this much work. | // The best chain should have at least this much work. | ||||
consensus.nMinimumChainWork = uint256S( | consensus.nMinimumChainWork = uint256S( | ||||
"000000000000000000000000000000000000000000ed8fb94eee97fc15788cdc"); | "000000000000000000000000000000000000000000ed8fb94eee97fc15788cdc"); | ||||
// By default assume that the signatures in ancestors of this block are | // By default assume that the signatures in ancestors of this block are | ||||
// valid. | // valid. | ||||
consensus.defaultAssumeValid = uint256S( | consensus.defaultAssumeValid = uint256S( | ||||
▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | CTestNetParams() { | ||||
consensus.CSVHeight = 770112; | consensus.CSVHeight = 770112; | ||||
consensus.powLimit = uint256S( | consensus.powLimit = uint256S( | ||||
"00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | "00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | ||||
// two weeks | // two weeks | ||||
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | ||||
consensus.nPowTargetSpacing = 10 * 60; | consensus.nPowTargetSpacing = 10 * 60; | ||||
consensus.fPowAllowMinDifficultyBlocks = true; | consensus.fPowAllowMinDifficultyBlocks = true; | ||||
consensus.fPowNoRetargeting = false; | consensus.fPowNoRetargeting = false; | ||||
// 75% for testchains | |||||
consensus.nRuleChangeActivationThreshold = 1512; | |||||
// nPowTargetTimespan / nPowTargetSpacing | |||||
consensus.nMinerConfirmationWindow = 2016; | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; | |||||
// January 1, 2008 | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = | |||||
1199145601; | |||||
// December 31, 2008 | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = | |||||
1230767999; | |||||
// The best chain should have at least this much work. | // The best chain should have at least this much work. | ||||
consensus.nMinimumChainWork = uint256S( | consensus.nMinimumChainWork = uint256S( | ||||
"00000000000000000000000000000000000000000000004c83317c9efa4724bd"); | "00000000000000000000000000000000000000000000004c83317c9efa4724bd"); | ||||
// By default assume that the signatures in ancestors of this block are | // By default assume that the signatures in ancestors of this block are | ||||
// valid. | // valid. | ||||
consensus.defaultAssumeValid = uint256S( | consensus.defaultAssumeValid = uint256S( | ||||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | CRegTestParams() { | ||||
consensus.CSVHeight = 576; | consensus.CSVHeight = 576; | ||||
consensus.powLimit = uint256S( | consensus.powLimit = uint256S( | ||||
"7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | "7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); | ||||
// two weeks | // two weeks | ||||
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | consensus.nPowTargetTimespan = 14 * 24 * 60 * 60; | ||||
consensus.nPowTargetSpacing = 10 * 60; | consensus.nPowTargetSpacing = 10 * 60; | ||||
consensus.fPowAllowMinDifficultyBlocks = true; | consensus.fPowAllowMinDifficultyBlocks = true; | ||||
consensus.fPowNoRetargeting = true; | consensus.fPowNoRetargeting = true; | ||||
// 75% for testchains | |||||
consensus.nRuleChangeActivationThreshold = 108; | |||||
// Faster than normal for regtest (144 instead of 2016) | |||||
consensus.nMinerConfirmationWindow = 144; | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0; | |||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = | |||||
999999999999ULL; | |||||
// The best chain should have at least this much work. | // The best chain should have at least this much work. | ||||
consensus.nMinimumChainWork = uint256S("0x00"); | consensus.nMinimumChainWork = uint256S("0x00"); | ||||
// By default assume that the signatures in ancestors of this block are | // By default assume that the signatures in ancestors of this block are | ||||
// valid. | // valid. | ||||
consensus.defaultAssumeValid = uint256S("0x00"); | consensus.defaultAssumeValid = uint256S("0x00"); | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |