Reinstate previous testnet adjustment behaviour
When the difficulty adjustment algorithm was altered, the special testnet min-difficulty case was maintained, but the difficulty adjustment for the following block then adjusted from min-difficulty instead of from the last non-min-difficulty block. This caused the difficulty on the testnet to sawtooth instead of stabilising. The intended behaviour is restored here.
This commit is contained in:
@@ -18,6 +18,7 @@ class arith_uint256;
|
||||
|
||||
unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&);
|
||||
unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params&);
|
||||
unsigned int CalculateNextWorkRequired(uint32_t nBits, int64_t nLastBlockTime, int64_t nFirstBlockTime, const Consensus::Params&);
|
||||
|
||||
/** Check whether the Equihash solution in a block header is valid */
|
||||
bool CheckEquihashSolution(const CBlockHeader *pblock, const CChainParams&);
|
||||
|
||||
Reference in New Issue
Block a user