Only set flag3 if TSA makes it harder
This commit is contained in:
@@ -456,7 +456,8 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
|
|||||||
if ( zflags[0] == 0 && zawyflag == 0 && mult <= 1 )
|
if ( zflags[0] == 0 && zawyflag == 0 && mult <= 1 )
|
||||||
{
|
{
|
||||||
bnTarget = zawy_TSA_EMA(height,tipdiff,(bnTarget+ct[0])/arith_uint256(2),ts[0] - ts[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();
|
nbits = bnTarget.GetCompact();
|
||||||
|
|||||||
Reference in New Issue
Block a user