This commit is contained in:
jl777
2019-08-05 10:07:48 -11:00
parent dba368306b
commit e94370e3f0

View File

@@ -325,6 +325,12 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead
bnTarget = (bnTarget + bnPrev) / arith_uint256(2); bnTarget = (bnTarget + bnPrev) / arith_uint256(2);
else bnTarget = origtarget; else bnTarget = origtarget;
} }
else if ( pindexLast->GetHeight()+1 >= 350 )
{
if ( bnTarget < origtarget )
bnTarget = (bnTarget + bnPrev) / arith_uint256(2);
else bnTarget = origtarget;
}
} }
} }
nbits = bnTarget.GetCompact(); nbits = bnTarget.GetCompact();