aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-04-28 15:33:06 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-04-28 15:33:28 +0200
commit20f9ecd343bbd305f0aeb829f42e61edea8de62f (patch)
tree4f2db2a86567d33ac4c337083c391277240d3d4d
parent5725807402ec9c056e43bebe25a2543cbd94ddc6 (diff)
parentc7aac2d557fe3d3aa5bcdd3301a9b87eb110d8ed (diff)
Merge #7962: CalculateNextWorkRequired Cleanup
c7aac2d Deprecating the remaining LogPrintf dependencies that were made obsolete in PR #7459. (21E14)
-rw-r--r--src/pow.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pow.cpp b/src/pow.cpp
index 058404f357..1db3b69293 100644
--- a/src/pow.cpp
+++ b/src/pow.cpp
@@ -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;