Remove the min target from inner
This commit is contained in:
@@ -212,14 +212,14 @@ arith_uint256 RT_CST_RST_target(int32_t height,uint32_t nTime,arith_uint256 bnTa
|
|||||||
|
|
||||||
arith_uint256 RT_CST_RST_inner(int32_t height,uint32_t nTime,arith_uint256 bnTarget,uint32_t *ts,arith_uint256 *ct,int32_t W,int32_t outeri)
|
arith_uint256 RT_CST_RST_inner(int32_t height,uint32_t nTime,arith_uint256 bnTarget,uint32_t *ts,arith_uint256 *ct,int32_t W,int32_t outeri)
|
||||||
{
|
{
|
||||||
arith_uint256 mintarget; int32_t expected,elapsed,width = outeri+W;
|
int32_t expected,elapsed,width = outeri+W; //arith_uint256 mintarget;
|
||||||
expected = (width+1) * T;
|
expected = (width+1) * T;
|
||||||
if ( (elapsed= (ts[0] - ts[width])) < expected )
|
if ( (elapsed= (ts[0] - ts[width])) < expected )
|
||||||
{
|
{
|
||||||
mintarget = (bnTarget / arith_uint256(11)) * arith_uint256(10);
|
//mintarget = (bnTarget / arith_uint256(11)) * arith_uint256(10);
|
||||||
bnTarget = RT_CST_RST_target(height,nTime,bnTarget,ts,ct,W);
|
bnTarget = RT_CST_RST_target(height,nTime,bnTarget,ts,ct,W);
|
||||||
if ( bnTarget > mintarget ) // force zawyflag to 1
|
//if ( bnTarget > mintarget ) // force zawyflag to 1
|
||||||
bnTarget = mintarget;
|
// bnTarget = mintarget;
|
||||||
{
|
{
|
||||||
int32_t z;
|
int32_t z;
|
||||||
for (z=31; z>=0; z--)
|
for (z=31; z>=0; z--)
|
||||||
|
|||||||
Reference in New Issue
Block a user