From 05f8c237675b028acaa94ba64af7cbf292be4706 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 7 May 2018 16:07:04 +0300 Subject: [PATCH] Test --- src/komodo_events.h | 2 +- src/miner.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/komodo_events.h b/src/komodo_events.h index 53e72ae95..d3eab4902 100644 --- a/src/komodo_events.h +++ b/src/komodo_events.h @@ -48,7 +48,7 @@ void komodo_eventadd_notarized(struct komodo_state *sp,char *symbol,int32_t heig } else if ( strcmp(symbol,coin) == 0 ) { - if ( NOTARY_PUBKEY33[0] != 0 && verified != 0 ) + if ( 0 && NOTARY_PUBKEY33[0] != 0 && verified != 0 ) fprintf(stderr,"validated [%s] ht.%d notarized %d\n",coin,height,notarizedheight); memset(&N,0,sizeof(N)); N.blockhash = notarized_hash; diff --git a/src/miner.cpp b/src/miner.cpp index f8414cb19..5c99f9537 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -893,6 +893,7 @@ void static BitcoinMiner() } else fprintf(stderr,"no nonz pubkeys\n"); if ( (Mining_height >= 235300 && Mining_height < 236000) || (j == 65 && Mining_height > KOMODO_MAYBEMINED+1 && Mining_height > KOMODO_LASTMINED+64) ) { + pblock->nBits = KOMODO_MINDIFF_NBITS; HASHTarget = arith_uint256().SetCompact(KOMODO_MINDIFF_NBITS); fprintf(stderr,"I am the chosen one for %s ht.%d\n",ASSETCHAINS_SYMBOL,pindexPrev->nHeight+1); } //else fprintf(stderr,"duplicate at j.%d\n",j);