Skip to content

Commit

Permalink
Fixed undefined behavior of BIP65/66 on testnet and devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Dec 20, 2023
1 parent b6371c7 commit be56be1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ class CTestNetParams : public CChainParams {
consensus.nChainStartTime = 1389306217;
consensus.BIP34Height = 21111;
consensus.BIP34Hash = uint256S("0x0000000023b3a96d3484e5abb3755c413e7d41500f8e2a5c3f0dd01299cd8ef8");
consensus.BIP65Height = INT_MAX;
consensus.BIP66Height = INT_MAX;
consensus.powLimit = uint256S("00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nPowTargetTimespan = 60 * 60; // 60 minutes between retargets
consensus.nPowTargetSpacing = 5 * 60; // 5 minute blocks
Expand Down Expand Up @@ -813,6 +815,8 @@ class CDevNetParams : public CChainParams {
consensus.nChainStartTime = 1389306217;
consensus.BIP34Height = 21111;
consensus.BIP34Hash = uint256S("0x0000000023b3a96d3484e5abb3755c413e7d41500f8e2a5c3f0dd01299cd8ef8");
consensus.BIP65Height = INT_MAX;
consensus.BIP66Height = INT_MAX;
consensus.powLimit = uint256S("00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nPowTargetTimespan = 60 * 60; // 60 minutes between retargets
consensus.nPowTargetSpacing = 5 * 60; // 5 minute blocks
Expand Down

0 comments on commit be56be1

Please sign in to comment.