Only set flag3 if TSA makes it harder

This commit is contained in:
jl777
2019-08-08 01:14:24 -11:00
parent b2115a226b
commit 874ff693ac

View File

@@ -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();