Skip to content

Commit f6d624e

Browse files
authored
Update pow.cpp
1 parent 8977a40 commit f6d624e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ arith_uint256 oldRT_CST_RST(int32_t height,uint32_t nTime,arith_uint256 bnTarget
8585
if ( height < 64 )
8686
return(bnTarget);
8787
//if ( ((ts[0]-ts[W]) * W * 100)/(W-1) < (T * numerator * 100)/denominator )
88-
if ( (ts[0] - ts[W]) < (T * numerator)/denominator )
88+
if ( (uint32_t)(ts[0] - ts[W]) < (T * numerator)/denominator )
8989
{
9090
//bnTarget = ((ct[0]-ct[1])/K) * max(K,(K*(nTime-ts[0])*(ts[0]-ts[W])*denominator/numerator)/T/T);
9191
bnTarget = ct[0] / arith_uint256(K);

0 commit comments

Comments
 (0)