This commit is contained in:
jl777
2018-04-13 17:19:23 +03:00
parent 143d63a20b
commit 1f333439ff
2 changed files with 4 additions and 2 deletions

View File

@@ -731,7 +731,9 @@ void komodo_pindex_init(CBlockIndex *pindex,int32_t height)
pindex->notaryid = -1;
if ( pindex->pubkey33[0] != 2 && pindex->pubkey33[0] != 3 && pindex->pubkey33[0] != 0xff )
{
memset(pindex->pubkey33,0xff,33);
if ( KOMODO_LOADINGBLOCKS == 0 )
memset(pindex->pubkey33,0xff,33);
else memset(pindex->pubkey33,0,33);
if ( komodo_blockload(block,pindex) == 0 )
{
komodo_block2pubkey33(pindex->pubkey33,block);

View File

@@ -206,7 +206,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
for (i=0; i<66; i++)
printf("%d ",mids[i]);
printf(" minerids from ht.%d pindex.%p\n",height,pindex);
//if ( KOMODO_LOADINGBLOCKS == 0 )
if ( KOMODO_LOADINGBLOCKS == 0 )
return false;
}
return true;