Changeset View
Changeset View
Standalone View
Standalone View
src/chainparams.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | CMainParams() { | ||||
// 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; | ||||
// 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, | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] | ||||
.nActivationThreshold = 1916; | |||||
// January 1, 2008 | // January 1, 2008 | ||||
.nStartTime = 1199145601, | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = | ||||
1199145601; | |||||
// December 31, 2008 | // December 31, 2008 | ||||
.nTimeout = 1230767999, | 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 = | 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 = | ||||
▲ Show 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | CTestNetParams() { | ||||
// 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; | ||||
// nPowTargetTimespan / nPowTargetSpacing | // nPowTargetTimespan / nPowTargetSpacing | ||||
consensus.nMinerConfirmationWindow = 2016; | consensus.nMinerConfirmationWindow = 2016; | ||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] = { | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; | ||||
.bit = 28, | |||||
// January 1, 2008 | // January 1, 2008 | ||||
.nStartTime = 1199145601, | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = | ||||
1199145601; | |||||
// December 31, 2008 | // December 31, 2008 | ||||
.nTimeout = 1230767999, | 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 = | 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 = | ||||
▲ Show 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | CRegTestParams() { | ||||
// 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; | ||||
// 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, | consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY] | ||||
}; | .nActivationThreshold = 108; | ||||
// 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(); | ||||
Show All 37 Lines | CRegTestParams() { | ||||
//!< Regtest mode doesn't have any DNS seeds. | //!< Regtest mode doesn't have any DNS seeds. | ||||
vSeeds.clear(); | vSeeds.clear(); | ||||
fDefaultConsistencyChecks = true; | fDefaultConsistencyChecks = true; | ||||
fRequireStandard = false; | fRequireStandard = false; | ||||
fMineBlocksOnDemand = true; | fMineBlocksOnDemand = true; | ||||
checkpointData = { | checkpointData = { | ||||
.mapCheckpoints = { | .mapCheckpoints = { | ||||
deadalnix: This is used here, so clearly reverting it is not the right path forward, at least not without… | |||||
FabienAuthorUnsubmitted Done Inline ActionsThis is a GCC limitation. It works only if the named initializers are in order with no missing one in the middle: https://stackoverflow.com/a/46067271 Fabien: This is a GCC limitation. It works only if the named initializers are in order with no missing… | |||||
deadalnixUnsubmitted Not Done Inline ActionsThen it sounds like we might want to do that. Or wonder if we actually support gcc 8, and if we do than why the hell did D5139 pass CI? deadalnix: Then it sounds like we might want to do that. Or wonder if we actually support gcc 8, and if we… | |||||
FabienAuthorUnsubmitted Done Inline ActionsThe CI runs gcc-8. I'm working toward adding other machines with various new builds. Fabien: The CI runs gcc-8. I'm working toward adding other machines with various new builds. | |||||
{0, BlockHash::fromHex("0f9188f13cb7b2c71f2a335e3a4fc328bf5beb4" | {0, BlockHash::fromHex("0f9188f13cb7b2c71f2a335e3a4fc328bf5beb4" | ||||
"36012afca590b1a11466e2206")}, | "36012afca590b1a11466e2206")}, | ||||
}}; | }}; | ||||
chainTxData = ChainTxData{0, 0, 0}; | chainTxData = ChainTxData{0, 0, 0}; | ||||
base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111); | base58Prefixes[PUBKEY_ADDRESS] = std::vector<uint8_t>(1, 111); | ||||
base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196); | base58Prefixes[SCRIPT_ADDRESS] = std::vector<uint8_t>(1, 196); | ||||
Show All 35 Lines |
This is used here, so clearly reverting it is not the right path forward, at least not without going through the trouble of figuring out why it works in one case and not the other.