Skip to content

Commit

Permalink
Update RegTest Settings - Taproot Test
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredTate committed Jan 8, 2025
1 parent 21698e7 commit d1bc3c6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,13 +636,15 @@ class CRegTestParams : public CChainParams {
consensus.alwaysUpdateDiffChangeTarget = 400; // Block 400,000 MultiShield Hard Fork
consensus.workComputationChangeTarget = 1430; // Block 1,430,000 DigiSpeed Hard Fork
consensus.algoSwapChangeTarget = 2000; // Block 9,000,000 Odo PoW Hard Fork
consensus.nRuleChangeActivationThreshold = 168; // 70% of 240
consensus.nMinerConfirmationWindow = 240; // 1 hour in RegTest
consensus.fRbfEnabled = false;

// Soft fork Threshhold Regtest
consensus.nRuleChangeActivationThreshold = 70; // 70% of 100
consensus.nMinerConfirmationWindow = 100; // 1 hour in RegTest


consensus.fRbfEnabled = false;
consensus.nOdoShapechangeInterval = 4; // 1 minute
consensus.fPowNoRetargeting = true;

consensus.initialTarget[ALGO_ODO] = ArithToUint256(~arith_uint256(0) >> 38); // 4 difficulty

// Old 1% monthly DGB Reward before 15 secon block change
Expand Down Expand Up @@ -684,11 +686,11 @@ class CRegTestParams : public CChainParams {
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].min_activation_height = 0; // No activation delay

// Activation of Taproot (BIPs 340-342)
// Configure Taproot Test Deployment
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].bit = 2;
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nStartTime = Consensus::BIP9Deployment::ALWAYS_ACTIVE;
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nStartTime = 0; // Start at genesis
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].min_activation_height = 0; // No activation delay
consensus.vDeployments[Consensus::DEPLOYMENT_TAPROOT].min_activation_height = 10;

consensus.nMinimumChainWork = uint256{};
consensus.defaultAssumeValid = uint256{};
Expand Down

0 comments on commit d1bc3c6

Please sign in to comment.