diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index b8d268406..e347a7025 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -904,7 +904,7 @@ int32_t komodo_is_special(uint8_t pubkeys[66][33],int32_t mids[66],int32_t heigh if ( nid == notaryid ) { //if ( (0) && notaryid > 0 ) - fprintf(stderr,"ht.%d repeat notaryid.%d in mids[%d]\n",height,mids[0],i); + fprintf(stderr,"ht.%d repeat notaryid.%d in mids[%d] nid.%d notaryid.%d\n",height,mids[0],i,nid,notaryid); if ( height > 225000 ) return(-1); } diff --git a/src/pow.cpp b/src/pow.cpp index 48bb63763..5958b47dd 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -146,11 +146,11 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in } if ( height > 34000 && ASSETCHAINS_SYMBOL[0] == 0 ) // 0 -> non-special notary { - if ( (pindex= komodo_chainactive(height)) != 0 ) + /*if ( (pindex= komodo_chainactive(height)) != 0 ) { komodo_pindex_init(pindex,height); memcpy(pubkey33,pindex->pubkey33,33); - } + }*/ special = komodo_chosennotary(¬aryid,height,pubkey33,timestamp); for (i=0; i<33; i++) { @@ -200,11 +200,11 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in 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 ) + /*if ( pindex != 0 ) { pindex->didinit = 0; komodo_index2pubkey33(pubkey33,pindex,height); - } + }*/ for (i=0; i<33; i++) printf("%02x",pubkey33[i]); printf(" <- pubkey\n");