From 9e6adb124fe73ea3e4b5aece2bc75ab2030e3cdd Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 22 Jul 2016 13:58:13 +1200 Subject: [PATCH] Hardfork to the previous testnet difficulty adjustment behaviour at block 43400 This hardfork will be removed the next time the testnet blockchain is reset. --- src/pow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pow.cpp b/src/pow.cpp index 9371863c4..ffa34ec91 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -33,7 +33,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead // then allow mining of a min-difficulty block. if (pblock->GetBlockTime() > pindexLast->GetBlockTime() + params.nPowTargetSpacing*2) 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) while (pindexBits->pprev && pindexBits->nBits == nProofOfWorkLimit) pindexBits = pindexBits->pprev;