From 509d4f2b1565bab405fcac05a6fe1436af97764b Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Aug 2019 09:16:16 -1100 Subject: [PATCH] Tipdiff/2 --- src/pow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index 705f8f55e..9f55f7192 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -353,8 +353,8 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead tipdiff = 2; bnTarget = ct[0] / arith_uint256(K); A = bnTarget * arith_uint256(T); - B = bnTarget * arith_uint256(tipdiff * zawy_exponential_val360000(tipdiff) / 2) / arith_uint256(360000); - C = bnTarget * arith_uint256(T * tipdiff * zawy_exponential_val360000(tipdiff) / 2) / arith_uint256(360000); + B = bnTarget * arith_uint256(tipdiff * zawy_exponential_val360000(tipdiff/2)) / arith_uint256(360000); + C = bnTarget * arith_uint256(T * tipdiff * zawy_exponential_val360000(tipdiff/2)) / arith_uint256(360000); bnTarget = (A + B - C) * arith_uint256(K); { int32_t z;