Skip to content

Commit

Permalink
Merge pull request bitcoin#11 from dgarage/height-fixes
Browse files Browse the repository at this point in the history
[consensus] BIP34 etc heights set to 1 instead of 0 as genesis block …
  • Loading branch information
kallewoof committed Jul 21, 2017
2 parents 67deff9 + 27f1f43 commit a5610df
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

static bool DetermineNonceRequired(CBlock block, uint32_t nBits)
{
arith_uint256 bnTarget;
bool fNegative;
arith_uint256 bnTarget;1 bool fNegative;
bool fOverflow;
bnTarget.SetCompact(nBits, &fNegative, &fOverflow);
return !block.CheckProofOfWork() || bnTarget <= UintToArith256(block.GetHash());
Expand Down Expand Up @@ -257,10 +256,10 @@ class CBC2Params : public CChainParams {
strNetworkID = "bc2";
consensus.nSubsidyHalvingInterval = 210000;
consensus.nFIRDiffFilterThreshold = 0;
consensus.BIP34Height = 0;
consensus.BIP34Height = 1;
consensus.BIP34Hash = uint256S("0x000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8");
consensus.BIP65Height = 0; // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0
consensus.BIP66Height = 0; // 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931
consensus.BIP65Height = 1; // 000000000000000004c2b624ed5d7756c508d90fd0da2c7c679febfa6c4735f0
consensus.BIP66Height = 1; // 00000000000000000379eaa19dce8c9b722d46ae6a57c2f1a988119488b50931
consensus.powLimit = uint256S("7fffff0000000000000000000000000000000000000000000000000000000000");
consensus.nPowOriginalTargetTimespan = 60 * 60; // 1 hour
consensus.nPowFilteredTargetTimespan = 15 * 60; // 15 minutes
Expand Down

0 comments on commit a5610df

Please sign in to comment.