Test
This commit is contained in:
43
src/pow.cpp
43
src/pow.cpp
@@ -189,28 +189,29 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
|||||||
{
|
{
|
||||||
if ( KOMODO_LOADINGBLOCKS != 0 )
|
if ( KOMODO_LOADINGBLOCKS != 0 )
|
||||||
return true;
|
return true;
|
||||||
for (i=31; i>=0; i--)
|
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
||||||
printf("%02x",((uint8_t *)&hash)[i]);
|
|
||||||
printf(" hash vs ");
|
|
||||||
for (i=31; i>=0; i--)
|
|
||||||
printf("%02x",((uint8_t *)&bnTarget)[i]);
|
|
||||||
printf(" ht.%d special.%d notaryid.%d ht.%d mod.%d error\n",height,special,notaryid,height,(height % 35));
|
|
||||||
/*if ( pindex != 0 )
|
|
||||||
{
|
{
|
||||||
pindex->didinit = 0;
|
if ( height > 790000 )
|
||||||
komodo_index2pubkey33(pubkey33,pindex,height);
|
{
|
||||||
}*/
|
for (i=31; i>=0; i--)
|
||||||
for (i=0; i<33; i++)
|
printf("%02x",((uint8_t *)&hash)[i]);
|
||||||
printf("%02x",pubkey33[i]);
|
printf(" hash vs ");
|
||||||
printf(" <- pubkey\n");
|
for (i=31; i>=0; i--)
|
||||||
for (i=0; i<33; i++)
|
printf("%02x",((uint8_t *)&bnTarget)[i]);
|
||||||
printf("%02x",origpubkey33[i]);
|
printf(" ht.%d special.%d notaryid.%d ht.%d mod.%d error\n",height,special,notaryid,height,(height % 35));
|
||||||
printf(" <- origpubkey\n");
|
for (i=0; i<33; i++)
|
||||||
for (i=0; i<66; i++)
|
printf("%02x",pubkey33[i]);
|
||||||
printf("%d ",mids[i]);
|
printf(" <- pubkey\n");
|
||||||
printf(" minerids from ht.%d pindex.%p\n",height,pindex);
|
for (i=0; i<33; i++)
|
||||||
if ( height > 792000 )
|
printf("%02x",origpubkey33[i]);
|
||||||
return false;
|
printf(" <- origpubkey\n");
|
||||||
|
for (i=0; i<66; i++)
|
||||||
|
printf("%d ",mids[i]);
|
||||||
|
printf(" minerids from ht.%d pindex.%p\n",height,pindex);
|
||||||
|
}
|
||||||
|
if ( height > 792000 )
|
||||||
|
return false;
|
||||||
|
} else return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user