This commit is contained in:
jl777
2016-11-17 20:44:49 -03:00
parent 6806478bbf
commit 76d237f619

View File

@@ -133,7 +133,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
if ( notaryid >= 0 ) if ( notaryid >= 0 )
{ {
special2 = komodo_is_special(height,pubkey33); special2 = komodo_is_special(height,pubkey33);
if ( 0 && special2 == -2 ) if ( special2 == -2 )
printf("height.%d special2.%d special.%d\n",height,special2,special); printf("height.%d special2.%d special.%d\n",height,special2,special);
if ( special2 == -2 || (height < 70000 && (special != 0 || special2 > 0)) || if ( special2 == -2 || (height < 70000 && (special != 0 || special2 > 0)) ||
(height >= 70000 && special2 > 0) ) (height >= 70000 && special2 > 0) )
@@ -159,9 +159,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;