Browse Source

Merge #7962: CalculateNextWorkRequired Cleanup

c7aac2d Deprecating the remaining LogPrintf dependencies that were made obsolete in PR #7459. (21E14)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
20f9ecd343
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/pow.cpp

2
src/pow.cpp

@ -64,9 +64,7 @@ unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nF @@ -64,9 +64,7 @@ unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nF
// Retarget
const arith_uint256 bnPowLimit = UintToArith256(params.powLimit);
arith_uint256 bnNew;
arith_uint256 bnOld;
bnNew.SetCompact(pindexLast->nBits);
bnOld = bnNew;
bnNew *= nActualTimespan;
bnNew /= params.nPowTargetTimespan;

Loading…
Cancel
Save