From 874ff693acdad2554355cd1b57e1473669288815 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 8 Aug 2019 01:14:24 -1100 Subject: [PATCH] Only set flag3 if TSA makes it harder --- src/pow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pow.cpp b/src/pow.cpp index b6ec783ef..fe933bcfc 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -456,7 +456,8 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead if ( zflags[0] == 0 && zawyflag == 0 && mult <= 1 ) { bnTarget = zawy_TSA_EMA(height,tipdiff,(bnTarget+ct[0])/arith_uint256(2),ts[0] - ts[1]); - zawyflag = 3; + if ( bnTarget < origtarget ) + zawyflag = 3; } } nbits = bnTarget.GetCompact();