diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 2593d6cff..60ca7f24d 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -739,9 +739,9 @@ void komodo_pindex_init(CBlockIndex *pindex,int32_t height) if ( komodo_blockload(block,pindex) == 0 ) { komodo_block2pubkey33(pindex->pubkey33,block); - for (i=0; i<33; i++) - fprintf(stderr,"%02x",pindex->pubkey33[i]); - fprintf(stderr," set pubkey at height %d/%d\n",pindex->nHeight,height); + //for (i=0; i<33; i++) + // fprintf(stderr,"%02x",pindex->pubkey33[i]); + //fprintf(stderr," set pubkey at height %d/%d\n",pindex->nHeight,height); pindex->didinit = (KOMODO_LOADINGBLOCKS == 0); } // else fprintf(stderr,"error loading block at %d/%d",pindex->nHeight,height); } diff --git a/src/pow.cpp b/src/pow.cpp index a3a0e7260..a5813a7af 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -189,6 +189,8 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in // Check proof of work matches claimed amount if ( UintToArith256(hash) > bnTarget ) { + if ( KOMODO_LOADINGBLOCKS == 0 ) + return false; for (i=31; i>=0; i--) printf("%02x",((uint8_t *)&hash)[i]); printf(" hash vs "); @@ -206,8 +208,6 @@ 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 ) - return false; } return true; }