diff options
| author | Ross Nicoll <[email protected]> | 2018-09-19 15:58:29 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-23 21:22:58 +0100 |
| commit | 199cf694ef955137f87138f78b9c0f010dcc90b6 (patch) | |
| tree | 46d2e44b82eca63a6e6c7a13ad7dbe2f1ca5bc82 /src/chainparams.cpp | |
| parent | Create v1 transactions for compatibility with 1.10 (#1485) (diff) | |
| download | discoin-199cf694ef955137f87138f78b9c0f010dcc90b6.tar.xz discoin-199cf694ef955137f87138f78b9c0f010dcc90b6.zip | |
Update miner confirmation window
* Update miner confirmation window to 240 for Dogecoin main net, and update related values.
* Re-enable PoW tests with Dogecoin values.
* Update version bit tests based on Dogecoin mining values.
Diffstat (limited to 'src/chainparams.cpp')
| -rw-r--r-- | src/chainparams.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 722cf8c0d..baf54dffc 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -92,8 +92,8 @@ public: consensus.fPowAllowMinDifficultyBlocks = false; consensus.fPowAllowDigishieldMinDifficultyBlocks = false; consensus.fPowNoRetargeting = false; - consensus.nRuleChangeActivationThreshold = 1916; // 95% of 2016 - consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing + consensus.nRuleChangeActivationThreshold = 9576; // 95% of 10,080 + consensus.nMinerConfirmationWindow = 10080; // 60 * 24 * 7 = 10,080 blocks, or one week consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008 @@ -238,8 +238,8 @@ public: consensus.nPowTargetTimespan = 4 * 60 * 60; // pre-digishield: 4 hours consensus.nPowTargetSpacing = 60; // 1 minute consensus.fPowNoRetargeting = false; - consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains - consensus.nMinerConfirmationWindow = 240; // nPowTargetTimespan / nPowTargetSpacing + consensus.nRuleChangeActivationThreshold = 2880; // 2 days (note this is significantly lower than Bitcoin standard) + consensus.nMinerConfirmationWindow = 10080; // 60 * 24 * 7 = 10,080 blocks, or one week consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008 @@ -375,8 +375,8 @@ public: consensus.fDigishieldDifficultyCalculation = false; consensus.fPowAllowMinDifficultyBlocks = true; consensus.fPowNoRetargeting = true; - consensus.nRuleChangeActivationThreshold = 108; // 75% for testchains - consensus.nMinerConfirmationWindow = 60; // Faster than normal for regtest (60 instead of 240) + consensus.nRuleChangeActivationThreshold = 540; // 75% for testchains + consensus.nMinerConfirmationWindow = 720; // Faster than normal for regtest (2,520 instead of 10,080) consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0; consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 999999999999ULL; |