Skip to content

Commit

Permalink
hard fork on height 3800810
Browse files Browse the repository at this point in the history
  • Loading branch information
ShorelineCrypto committed Jun 5, 2022
1 parent edf899d commit 7fde834
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class CMainParams : public CChainParams {
consensus.nMajorityEnforceBlockUpgrade = 750;
consensus.nMajorityRejectBlockOutdated = 950;
consensus.nMajorityWindow = 1000;
consensus.BIP34Height = 3800000;
consensus.BIP34Height = 3800910;
consensus.BIP34Hash = uint256S("");
consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nPowTargetTimespan = 1 * 24 * 60 * 60; // 1 days
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3555,7 +3555,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta
const int nHeight = pindexPrev->nHeight+1;

// Check timestamp - Enforce future timestamp 30 seconds rule after v1.12.x hard fork
if ((nHeight > 3744500) && (block.GetBlockTime() > nAdjustedTime + 1 * 1 * 30))
if ((nHeight > 3800810) && (block.GetBlockTime() > nAdjustedTime + 1 * 1 * 30))
return state.Invalid(false, REJECT_INVALID, "time-too-new", "block timestamp >30 sec in the future");

bool enforceV2 = false;
Expand Down
4 changes: 2 additions & 2 deletions src/pow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
const int64_t nInterval = params.DifficultyAdjustmentInterval();
const int64_t nTargetSpacing = params.nPowTargetSpacing;

// v1.12.x hard fork after block 3744500
if (pindex->nHeight > 3744500) {
// v1.12.x hard fork after block 3800810
if (pindex->nHeight > 3800810) {
arith_uint256 bnCheetah;
bnCheetah = bnPowLimit;
bnCheetah /= 20;
Expand Down

0 comments on commit 7fde834

Please sign in to comment.