We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8977a40 commit f6d624eCopy full SHA for f6d624e
src/pow.cpp
@@ -85,7 +85,7 @@ arith_uint256 oldRT_CST_RST(int32_t height,uint32_t nTime,arith_uint256 bnTarget
85
if ( height < 64 )
86
return(bnTarget);
87
//if ( ((ts[0]-ts[W]) * W * 100)/(W-1) < (T * numerator * 100)/denominator )
88
- if ( (ts[0] - ts[W]) < (T * numerator)/denominator )
+ if ( (uint32_t)(ts[0] - ts[W]) < (T * numerator)/denominator )
89
{
90
//bnTarget = ((ct[0]-ct[1])/K) * max(K,(K*(nTime-ts[0])*(ts[0]-ts[W])*denominator/numerator)/T/T);
91
bnTarget = ct[0] / arith_uint256(K);
0 commit comments