This commit is contained in:
jl777
2016-12-03 11:15:29 -03:00
parent 88dff0d3e2
commit 44caf46a60
3 changed files with 9 additions and 5 deletions

View File

@@ -145,9 +145,12 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
// Check proof of work matches claimed amount
if ( UintToArith256(hash) > bnTarget )
{
//for (i=0; i<33; i++)
// printf("%02x",pubkey33[i]);
//printf(" special.%d notaryid.%d ht.%d mod.%d error\n",special,notaryid,height,(height % 35));
for (i=0; i<32; i++)
printf("%02x",((uint8_t *)&hash)[i]);
printf(" hash vs ")
for (i=0; i<32; i++)
printf("%02x",((uint8_t *)&bnTarget)[i]);
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 true;