Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
// 95% of 2016 | // 95% of 2016 | ||||
.nActivationThreshold = 1916, | .nActivationThreshold = 1916, | ||||
// January 1, 2008 | // January 1, 2008 | ||||
.nStartTime = 1199145601, | .nStartTime = 1199145601, | ||||
// December 31, 2008 | // December 31, 2008 | ||||
.nTimeout = 1230767999, | .nTimeout = 1230767999, | ||||
}; | }; | ||||
// The miner fund is enabled by default on mainnet. | |||||
consensus.enableMinerFund = true; | |||||
// The best chain should have at least this much work. | // The best chain should have at least this much work. | ||||
consensus.nMinimumChainWork = | consensus.nMinimumChainWork = | ||||
ChainParamsConstants::MAINNET_MINIMUM_CHAIN_WORK; | ChainParamsConstants::MAINNET_MINIMUM_CHAIN_WORK; | ||||
// 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 = | consensus.defaultAssumeValid = | ||||
ChainParamsConstants::MAINNET_DEFAULT_ASSUME_VALID; | ChainParamsConstants::MAINNET_DEFAULT_ASSUME_VALID; | ||||
▲ Show 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | CTestNetParams() { | ||||
// 75% of 2016 | // 75% of 2016 | ||||
.nActivationThreshold = 1512, | .nActivationThreshold = 1512, | ||||
// January 1, 2008 | // January 1, 2008 | ||||
.nStartTime = 1199145601, | .nStartTime = 1199145601, | ||||
// December 31, 2008 | // December 31, 2008 | ||||
.nTimeout = 1230767999, | .nTimeout = 1230767999, | ||||
}; | }; | ||||
// The miner fund is disabled by default on testnet. | |||||
consensus.enableMinerFund = false; | |||||
// The best chain should have at least this much work. | // The best chain should have at least this much work. | ||||
consensus.nMinimumChainWork = | consensus.nMinimumChainWork = | ||||
ChainParamsConstants::TESTNET_MINIMUM_CHAIN_WORK; | ChainParamsConstants::TESTNET_MINIMUM_CHAIN_WORK; | ||||
// 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 = | consensus.defaultAssumeValid = | ||||
ChainParamsConstants::TESTNET_DEFAULT_ASSUME_VALID; | ChainParamsConstants::TESTNET_DEFAULT_ASSUME_VALID; | ||||
▲ Show 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | CRegTestParams() { | ||||
// 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, | ||||
}; | }; | ||||
// The miner fund is disabled by default on regnet. | |||||
consensus.enableMinerFund = false; | |||||
// 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 = BlockHash(); | consensus.defaultAssumeValid = BlockHash(); | ||||
// UAHF is always enabled on regtest. | // UAHF is always enabled on regtest. | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |