Hush those mindiff bits
This commit is contained in:
@@ -1502,7 +1502,7 @@ arith_uint256 komodo_adaptivepow_target(int32_t height,arith_uint256 bnTarget,ui
|
||||
mult = (mult / ASSETCHAINS_BLOCKTIME) * ASSETCHAINS_BLOCKTIME + ASSETCHAINS_BLOCKTIME / 2;
|
||||
origtarget = bnTarget;
|
||||
bnTarget = bnTarget * arith_uint256(mult * mult);
|
||||
easy.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
|
||||
easy.SetCompact(HUSH_MINDIFF_NBITS,&fNegative,&fOverflow);
|
||||
if ( bnTarget < origtarget || bnTarget > easy ) // deal with overflow
|
||||
{
|
||||
bnTarget = easy;
|
||||
|
||||
Reference in New Issue
Block a user