Skip to content

Commit

Permalink
consensus: Change miner confirmation window settings for all networks
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Sep 19, 2024
1 parent 7ac04cc commit 5d83b10
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/kernel/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ class CMainParams : public CChainParams {
consensus.fPowAllowMinDifficultyBlocks = false;
consensus.fPowNoRetargeting = false;
consensus.fPoSNoRetargeting = false;
consensus.nRuleChangeActivationThreshold = 1815; // 90% of 2016
consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
consensus.nRuleChangeActivationThreshold = 12000; // 80% of 15000
consensus.nMinerConfirmationWindow = 15000; // nTargetTimespan / nTargetSpacing * 1000
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
Expand Down Expand Up @@ -220,8 +220,8 @@ class CTestNetParams : public CChainParams {
consensus.fPowAllowMinDifficultyBlocks = true;
consensus.fPowNoRetargeting = false;
consensus.fPoSNoRetargeting = false;
consensus.nRuleChangeActivationThreshold = 1512; // 75% for testchains
consensus.nMinerConfirmationWindow = 2016; // nTargetTimespan / nTargetSpacing
consensus.nRuleChangeActivationThreshold = 11250; // 75% for testchains
consensus.nMinerConfirmationWindow = 15000; // nTargetTimespan / nTargetSpacing * 1000
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
Expand Down Expand Up @@ -369,8 +369,8 @@ class SigNetParams : public CChainParams {
consensus.fPowAllowMinDifficultyBlocks = false;
consensus.fPowNoRetargeting = false;
consensus.fPoSNoRetargeting = false;
consensus.nRuleChangeActivationThreshold = 1815; // 90% of 2016
consensus.nMinerConfirmationWindow = 2016; // nPowTargetTimespan / nPowTargetSpacing
consensus.nRuleChangeActivationThreshold = 12000; // 80% of 15000
consensus.nMinerConfirmationWindow = 15000; // nTargetTimespan / nTargetSpacing * 1000
consensus.MinBIP9WarningHeight = 0;
consensus.powLimit = uint256S("0000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.posLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
Expand Down Expand Up @@ -451,8 +451,8 @@ class CRegTestParams : public CChainParams
consensus.fPowAllowMinDifficultyBlocks = true;
consensus.fPowNoRetargeting = true;
consensus.fPoSNoRetargeting = true;
consensus.nRuleChangeActivationThreshold = 108;// 75% for regtest
consensus.nMinerConfirmationWindow = 144; // Faster than normal for regtest (144 instead of 2016)
consensus.nRuleChangeActivationThreshold = 120; // 80% for regtest
consensus.nMinerConfirmationWindow = 150; // Faster than normal for regtest (150 instead of 15000)
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
Expand Down

0 comments on commit 5d83b10

Please sign in to comment.