diff --git a/src/komodo.h b/src/komodo.h index 663edb1e2..eed3e8355 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -497,7 +497,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) fprintf(stderr,"unexpected null komodostateptr.[%s]\n",ASSETCHAINS_SYMBOL); return; } - //fprintf(stderr,"%s connect.%d\n",ASSETCHAINS_SYMBOL,pindex->nHeight); + fprintf(stderr,"%s connect.%d\n",ASSETCHAINS_SYMBOL,pindex->nHeight); numnotaries = komodo_notaries(pubkeys,pindex->nHeight); calc_rmd160_sha256(rmd160,pubkeys[0],33); if ( pindex->nHeight > hwmheight ) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 72eac6305..5e576405a 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -553,6 +553,7 @@ uint32_t komodo_txtime(uint256 hash) void komodo_disconnect(CBlockIndex *pindex,CBlock& block) { char symbol[16],dest[16]; struct komodo_state *sp; + fprintf(stderr,"disconnect ht.%d\n",pindex->nHeight); komodo_init(pindex->nHeight); if ( (sp= komodo_stateptr(symbol,dest)) != 0 ) { diff --git a/src/miner.cpp b/src/miner.cpp index 25e575eb0..c2eb5b8ff 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -644,8 +644,8 @@ void static BitcoinMiner() while ( (ASSETCHAIN_INIT == 0 || KOMODO_INITDONE == 0) ) //chainActive.Tip()->nHeight != 235300 && { sleep(1); - //if ( komodo_baseid(ASSETCHAINS_SYMBOL) < 0 ) - // break; + if ( komodo_baseid(ASSETCHAINS_SYMBOL) < 0 ) + break; } komodo_chosennotary(¬aryid,chainActive.Tip()->nHeight,NOTARY_PUBKEY33);