This commit is contained in:
jl777
2018-04-13 15:22:31 +03:00
parent 6864ae44a4
commit 93684bd008

View File

@@ -171,13 +171,13 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
flag = 1; flag = 1;
else if ( special2 < 0 && height > 792000 ) else if ( special2 < 0 && height > 792000 )
flag = 0; flag = 0;
}
if ( flag != 0 || special2 > 0 ) if ( flag != 0 || special2 > 0 )
{ {
//fprintf(stderr,"EASY MINING ht.%d\n",height); //fprintf(stderr,"EASY MINING ht.%d\n",height);
bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow); bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
} }
} }
}
if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(params.powLimit)) if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(params.powLimit))
return error("CheckProofOfWork(): nBits below minimum work"); return error("CheckProofOfWork(): nBits below minimum work");
// Check proof of work matches claimed amount // Check proof of work matches claimed amount