fix(chainparams): update testnet consensus parameters
- Change BIP34Height from 0 to 8192 to match mainnet activation - Adjust nPowTargetTimespan from 1 day to 14 days for better difficulty stability - Add nPowTargetSpacingV2 parameter for future compatibility - Swap rule change activation threshold and miner confirmation window values - Clarify fPowAllowMinDifficultyBlocks comment
This commit is contained in:
@@ -177,7 +177,7 @@ public:
|
||||
};
|
||||
|
||||
/**
|
||||
* Testnet (v3)
|
||||
* Testnet
|
||||
*/
|
||||
class CTestNetParams : public CChainParams {
|
||||
public:
|
||||
@@ -185,7 +185,7 @@ public:
|
||||
strNetworkID = CBaseChainParams::TESTNET;
|
||||
consensus.nSubsidyHalvingInterval = 210000;
|
||||
|
||||
consensus.BIP34Height = 0;
|
||||
consensus.BIP34Height = 8192;
|
||||
consensus.BIP65Height = 0;
|
||||
consensus.BIP66Height = 0;
|
||||
consensus.CSVHeight = 0;
|
||||
@@ -202,12 +202,13 @@ public:
|
||||
|
||||
|
||||
consensus.powLimit = uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
||||
consensus.nPowTargetTimespan = 24 * 60 * 60;
|
||||
consensus.nPowTargetTimespan = 14 * 24 * 60 * 60;
|
||||
consensus.nPowTargetSpacing = 2 * 60;
|
||||
consensus.fPowAllowMinDifficultyBlocks = true;
|
||||
consensus.nPowTargetSpacingV2 = 2 * 60;
|
||||
consensus.fPowAllowMinDifficultyBlocks = true; // Enable minimum difficulty after 20 minutes of inactivity
|
||||
consensus.fPowNoRetargeting = false;
|
||||
consensus.nRuleChangeActivationThreshold = 720;
|
||||
consensus.nMinerConfirmationWindow = 540;
|
||||
consensus.nRuleChangeActivationThreshold = 540;
|
||||
consensus.nMinerConfirmationWindow = 720;
|
||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
|
||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 0;
|
||||
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
|
||||
|
||||
Reference in New Issue
Block a user