From e4fd5a8e999bd91a6910dbdf25c9527c2fa11b4f Mon Sep 17 00:00:00 2001 From: celbalrai <80897309+celbalrai@users.noreply.github.com> Date: Thu, 10 Jun 2021 16:22:32 +0200 Subject: [PATCH] Set chain parameters for CSV and BIP147 --- src/chainparams.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index aff24d1f36a79..099dbd21827ca 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -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::max(); @@ -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::max(); @@ -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 @@ -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;