This commit is contained in:
jl777
2016-11-12 16:16:46 -03:00
parent 4940066cd1
commit 27d725c2f5

View File

@@ -131,7 +131,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
{ {
if ( notaryid >= 0 ) if ( notaryid >= 0 )
{ {
if ( height < 70000 || special != 0 || komodo_is_special(height,pubkey33) > 0 ) if ( (height < 70000 && special != 0) || komodo_is_special(height,pubkey33) > 0 )
{ {
bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow); bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
flag = 1; flag = 1;
@@ -154,9 +154,9 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
// Check proof of work matches claimed amount // Check proof of work matches claimed amount
if ( UintToArith256(hash) > bnTarget ) if ( UintToArith256(hash) > bnTarget )
{ {
for (i=0; i<33; i++) //for (i=0; i<33; i++)
printf("%02x",pubkey33[i]); // printf("%02x",pubkey33[i]);
printf(" special.%d notaryid.%d ht.%d mod.%d error\n",special,notaryid,height,(height % 35)); //printf(" special.%d notaryid.%d ht.%d mod.%d error\n",special,notaryid,height,(height % 35));
return error("CheckProofOfWork(): hash doesn't match nBits"); return error("CheckProofOfWork(): hash doesn't match nBits");
} }
return true; return true;