Hardfork to the previous testnet difficulty adjustment behaviour at block 43400
This hardfork will be removed the next time the testnet blockchain is reset.
This commit is contained in:
@@ -33,7 +33,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
|
|||||||
// then allow mining of a min-difficulty block.
|
// then allow mining of a min-difficulty block.
|
||||||
if (pblock->GetBlockTime() > pindexLast->GetBlockTime() + params.nPowTargetSpacing*2)
|
if (pblock->GetBlockTime() > pindexLast->GetBlockTime() + params.nPowTargetSpacing*2)
|
||||||
return nProofOfWorkLimit;
|
return nProofOfWorkLimit;
|
||||||
else {
|
else if (pindexLast->nHeight >= 43400) { // TODO remove hardfork at next chain reset
|
||||||
// Get the last non-min-difficulty (or at worst the genesis difficulty)
|
// Get the last non-min-difficulty (or at worst the genesis difficulty)
|
||||||
while (pindexBits->pprev && pindexBits->nBits == nProofOfWorkLimit)
|
while (pindexBits->pprev && pindexBits->nBits == nProofOfWorkLimit)
|
||||||
pindexBits = pindexBits->pprev;
|
pindexBits = pindexBits->pprev;
|
||||||
|
|||||||
Reference in New Issue
Block a user