Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
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; | ||||
// two days | |||||
consensus.nDAAHalfLife = 2 * 24 * 60 * 60; | |||||
// nPowTargetTimespan / nPowTargetSpacing | // nPowTargetTimespan / nPowTargetSpacing | ||||
consensus.nMinerConfirmationWindow = 2016; | consensus.nMinerConfirmationWindow = 2016; | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] = { | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] = { | ||||
.bit = 28, | .bit = 28, | ||||
// 95% of 2016 | // 95% of 2016 | ||||
.nActivationThreshold = 1916, | .nActivationThreshold = 1916, | ||||
// January 1, 2008 | // January 1, 2008 | ||||
.nStartTime = 1199145601, | .nStartTime = 1199145601, | ||||
▲ Show 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | CTestNetParams() { | ||||
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; | ||||
// two days | |||||
consensus.nDAAHalfLife = 2 * 24 * 60 * 60; | |||||
// nPowTargetTimespan / nPowTargetSpacing | // nPowTargetTimespan / nPowTargetSpacing | ||||
consensus.nMinerConfirmationWindow = 2016; | consensus.nMinerConfirmationWindow = 2016; | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] = { | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] = { | ||||
.bit = 28, | .bit = 28, | ||||
// 75% of 2016 | // 75% of 2016 | ||||
.nActivationThreshold = 1512, | .nActivationThreshold = 1512, | ||||
// January 1, 2008 | // January 1, 2008 | ||||
.nStartTime = 1199145601, | .nStartTime = 1199145601, | ||||
▲ Show 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | CRegTestParams() { | ||||
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; | ||||
// two days | |||||
consensus.nDAAHalfLife = 2 * 24 * 60 * 60; | |||||
// Faster than normal for regtest (144 instead of 2016) | // Faster than normal for regtest (144 instead of 2016) | ||||
consensus.nMinerConfirmationWindow = 144; | consensus.nMinerConfirmationWindow = 144; | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] = { | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] = { | ||||
.bit = 28, | .bit = 28, | ||||
// 75% of 144 | // 75% of 144 | ||||
.nActivationThreshold = 108, | .nActivationThreshold = 108, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |