Browse Source

Only set flag3 if TSA makes it harder

pull/37/head
jl777 5 years ago
parent
commit
874ff693ac
  1. 3
      src/pow.cpp

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

Loading…
Cancel
Save