Skip to content

Commit

Permalink
Set chain parameters for CSV and BIP147
Browse files Browse the repository at this point in the history
  • Loading branch information
celbalrai authored and wagerr-builder committed Jun 17, 2022
1 parent caea85b commit 6c39796
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ class CMainParams : public CChainParams {
consensus.BIP34Hash = uint256S("000001364c4ed20f1b240810b5aa91fee23ae9b64b6e746b594b611cf6d8c87b");
consensus.BIP65Height = consensus.V17DeploymentHeight;
consensus.BIP66Height = 1; // 000002f68dbbf1fcfacb8f0b4e64083efdd2f07a906728ee068d573ffa5bcb4e
consensus.CSVHeight = consensus.V17DeploymentHeight;
consensus.BIP147Height = consensus.V17DeploymentHeight;
consensus.DIP0001Height = consensus.V17DeploymentHeight;
consensus.DIP0003Height = consensus.V17DeploymentHeight;
// consensus.DIP0003EnforcementHeight = std::numeric_limits<int>::max();
Expand Down Expand Up @@ -549,6 +551,8 @@ class CTestNetParams : public CChainParams {
consensus.BIP34Hash = uint256S("0000065432f43b3efb23bd0f63fe33d00d02a5f36233fe1b982c08274d58ef12");
consensus.BIP65Height = consensus.V17DeploymentHeight;
consensus.BIP66Height = 1; // 0000065432f43b3efb23bd0f63fe33d00d02a5f36233fe1b982c08274d58ef12
consensus.CSVHeight = consensus.V17DeploymentHeight;
consensus.BIP147Height = consensus.V17DeploymentHeight;
consensus.DIP0001Height = consensus.V17DeploymentHeight;
consensus.DIP0003Height = consensus.V17DeploymentHeight;
// consensus.DIP0003EnforcementHeight = std::numeric_limits<int>::max();
Expand Down Expand Up @@ -718,6 +722,8 @@ class CDevNetParams : public CChainParams {
consensus.BIP34Height = 1; // BIP34 activated immediately on devnet
consensus.BIP65Height = 1; // BIP65 activated immediately on devnet
consensus.BIP66Height = 1; // BIP66 activated immediately on devnet
consensus.CSVHeight = consensus.V17DeploymentHeight;
consensus.BIP147Height = consensus.V17DeploymentHeight;
consensus.DIP0001Height = 2; // DIP0001 activated immediately on devnet
consensus.DIP0003Height = 2; // DIP0003 activated immediately on devnet
// consensus.DIP0003EnforcementHeight = 2; // DIP0003 activated immediately on devnet
Expand Down Expand Up @@ -883,6 +889,8 @@ class CRegTestParams : public CChainParams {
consensus.BIP34Hash = uint256();
consensus.BIP65Height = consensus.V17DeploymentHeight; // BIP65 activated on regtest (Used in rpc activation tests)
consensus.BIP66Height = 1251; // BIP66 activated on regtest (Used in rpc activation tests)
consensus.CSVHeight = consensus.V17DeploymentHeight;
consensus.BIP147Height = consensus.V17DeploymentHeight;
consensus.DIP0001Height = 2000;
consensus.DIP0003Height = 210;
// consensus.DIP0003EnforcementHeight = 500;
Expand Down

0 comments on commit 6c39796

Please sign in to comment.