From bab2f263a2f526f7891566e3e3384f0364eb570a Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Apr 2018 17:28:49 +0300 Subject: [PATCH] Test --- src/komodo_bitcoind.h | 2 +- src/pow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index f1d207943..d88c7ddad 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -740,7 +740,7 @@ void komodo_pindex_init(CBlockIndex *pindex,int32_t height) 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 tip.%d\n",pindex->nHeight,height,chainActive.Tip()->nHeight); + fprintf(stderr," set pubkey at height %d/%d\n",pindex->nHeight,height); } } if ( (pindex->pubkey33[0] == 2 || pindex->pubkey33[0] == 3) && pindex->nHeight >= 0 && (num= komodo_notaries(pubkeys,(int32_t)pindex->nHeight,(uint32_t)pindex->nTime)) > 0 ) diff --git a/src/pow.cpp b/src/pow.cpp index b6c7d2b31..8abe12ce0 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -205,7 +205,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in printf(" <- pubkey\n"); for (i=0; i<66; i++) printf("%d ",mids[i]); - printf(" minerids from ht.%d pindex.%p\n",height,pindex); + printf(" minerids from ht.%d pindex.%p %d\n",height,pindex,chainActive.Tip()!=0?chainActive.Tip()->nHeight:-1); if ( KOMODO_LOADINGBLOCKS == 0 ) return false; }