Skip to content

Commit

Permalink
regtest: Activate SegWit
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Jun 11, 2024
1 parent 5aa210c commit 01f16b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/kernel/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class CRegTestParams : public CChainParams
consensus.signet_challenge.clear();
consensus.nMaxReorganizationDepth = 50;
consensus.CSVHeight = 1;
consensus.SegwitHeight = std::numeric_limits<int>::max();
consensus.SegwitHeight = 1;
consensus.MinBIP9WarningHeight = 0;
consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.posLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
Expand All @@ -460,8 +460,8 @@ class CRegTestParams : public CChainParams

// Deployment of SegWit (BIP141, BIP143, and BIP147)
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].bit = 1;
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = Consensus::BIP9Deployment::NEVER_ACTIVE;
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nStartTime = Consensus::BIP9Deployment::ALWAYS_ACTIVE;
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].nTimeout = 0;
consensus.vDeployments[Consensus::DEPLOYMENT_SEGWIT].min_activation_height = 0; // No activation delay

// Deployment of Taproot (BIPs 340-342)
Expand Down

0 comments on commit 01f16b5

Please sign in to comment.