Rename min-difficulty flag to remove off-by-one in the name
This commit is contained in:
@@ -25,8 +25,10 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
|
||||
return nProofOfWorkLimit;
|
||||
|
||||
{
|
||||
if (params.nPowAllowMinDifficultyBlocksFromHeight &&
|
||||
pindexLast->nHeight >= params.nPowAllowMinDifficultyBlocksFromHeight.get())
|
||||
// Comparing to pindexLast->nHeight with >= because this function
|
||||
// returns the work required for the block after pindexLast.
|
||||
if (params.nPowAllowMinDifficultyBlocksAfterHeight &&
|
||||
pindexLast->nHeight >= params.nPowAllowMinDifficultyBlocksAfterHeight.get())
|
||||
{
|
||||
// Special difficulty rule for testnet:
|
||||
// If the new block's timestamp is more than 6 * 2.5 minutes
|
||||
|
||||
Reference in New Issue
Block a user