Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Set fork block height to 400.000.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Kaandorp authored and Rob Kaandorp committed Dec 18, 2017
1 parent 699a78b commit bffea29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ const CBlockIndex* GetLastBlockIndex(const CBlockIndex* pindex, bool fProofOfSta
return pindex;
}

const int targetReadjustment_forkBlockHeight = 245000;
const int targetReadjustment_forkBlockHeight = 400000;

unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfStake)
{
Expand All @@ -1449,7 +1449,7 @@ unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfS
nActualSpacing = TARGET_SPACING;
} else if (nActualSpacing < 1 && pindexLast->nHeight >= targetReadjustment_forkBlockHeight) {
// For a smooth transition to the new readjustment algorithm set actual spacing close to TARGET_SPACING for 100 blocks.
nActualSpacing = TARGET_SPACING - 1;
nActualSpacing = TARGET_SPACING - 10;
} else if (nActualSpacing < 1 && pindexLast->nHeight >= (targetReadjustment_forkBlockHeight + 100)) {
nActualSpacing = 1;
}
Expand All @@ -1461,7 +1461,7 @@ unsigned int GetNextTargetRequired(const CBlockIndex* pindexLast, bool fProofOfS
int64_t nInterval = 5; // Average over 5 blocks

if (pindexLast->nHeight < targetReadjustment_forkBlockHeight) {
// Allow different difficulty in old blocks before height 180000.
// Allow different difficulty in old blocks before the fork.
nInterval = 1;
}

Expand Down

0 comments on commit bffea29

Please sign in to comment.