Remove unnecessary method

This commit is contained in:
Jack Grigg
2016-09-08 12:22:08 +12:00
parent aea79ec053
commit 4b37cfd5b8
4 changed files with 30 additions and 36 deletions

View File

@@ -43,14 +43,6 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
return CalculateNextWorkRequired(bnAvg, pindexLast->GetMedianTimePast(), pindexFirst->GetMedianTimePast(), params);
}
// Left for testing purposes
unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params& params)
{
arith_uint256 bnAvg;
bnAvg.SetCompact(pindexLast->nBits);
return CalculateNextWorkRequired(bnAvg, pindexLast->GetMedianTimePast(), nFirstBlockTime, params);
}
unsigned int CalculateNextWorkRequired(arith_uint256 bnAvg,
int64_t nLastBlockTime, int64_t nFirstBlockTime,
const Consensus::Params& params)