Skip to content

Commit d6145af

Browse files
committed
consensus: adjust bip9 periods
10x the default counting periods. Previous period was 2016 blocks or about 1.4 day. Proposed period is 20160 blocks or about 14 days. - The LOCKED_IN period is extended from 1.4 to 14 days, during which non upgraded nodes will be warned of the upcoming fork. - 10 times as expensive to potentially try to force activation with rented hashpower. - Slower activation. Previous minimum activation time from counting starts, about 3 days, with this proposal about 30 days.
1 parent 41a4d8b commit d6145af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/chainparams.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ class CMainParams : public CChainParams {
125125
consensus.nCSVEnabled = true;
126126
consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
127127
consensus.kawpowLimit = uint256S("0000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff"); // Estimated starting diff for first 180 kawpow blocks
128-
consensus.nPowTargetTimespan = 2016 * 60; // 1.4 days
128+
consensus.nPowTargetTimespan = 20160 * 60; // 14 days
129129
consensus.nPowTargetSpacing = 1 * 60;
130130
consensus.fPowAllowMinDifficultyBlocks = false;
131131
consensus.fPowNoRetargeting = false;
132-
consensus.nRuleChangeActivationThreshold = 1613; // Approx 80% of 2016
133-
consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
132+
consensus.nRuleChangeActivationThreshold = 16130; // Approx 80% of 20160
133+
consensus.nMinerConfirmationWindow = 20160; // nPowTargetTimespan / nPowTargetSpacing
134134
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
135135
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008
136136
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008
@@ -164,9 +164,9 @@ class CMainParams : public CChainParams {
164164
consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].bit = 11;
165165
consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].nStartTime = 1682956800; // UTC: Mon Mai 01 2023 18:00:00
166166
consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].nTimeout = 1714579200; // UTC: Wed Mai 01 2024 18:00:00
167-
consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].nOverrideRuleChangeActivationThreshold = 2016; // 100% required, hardly happens
168-
// consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].nOverrideRuleChangeActivationThreshold = 1411; // Approx 70% of 2016
169-
consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].nOverrideMinerConfirmationWindow = 2016;
167+
consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].nOverrideRuleChangeActivationThreshold = 20160; // 100% required, hardly happens
168+
// consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].nOverrideRuleChangeActivationThreshold = 16130; // Approx 80% of 20160
169+
consensus.vDeployments[Consensus::DEPLOYMENT_P2SH_ASSETS].nOverrideMinerConfirmationWindow = 20160;
170170

171171

172172
// The best chain should have at least this much work

0 commit comments

Comments
 (0)