This commit is contained in:
jl777
2017-02-02 16:16:03 +02:00
parent 0d46bedb0e
commit fc294da370

View File

@@ -156,6 +156,8 @@ 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 )
{ {
{
if ( height > 180000 && KOMODO_REWIND == 0 && chainActive[height] != 0 )
{ {
int32_t i; int32_t i;
for (i=31; i>=0; i--) for (i=31; i>=0; i--)
@@ -172,10 +174,10 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
printf("%d ",komodo_minerid(height-i,pubkey33)); printf("%d ",komodo_minerid(height-i,pubkey33));
} }
printf(" minerids from ht.%d\n",height); printf(" minerids from ht.%d\n",height);
if ( height > 180000 && KOMODO_REWIND == 0 )
return error("CheckProofOfWork(): hash doesn't match nBits"); return error("CheckProofOfWork(): hash doesn't match nBits");
} }
} }
}
return true; return true;
} }