diff --git a/src/cc/faucet.cpp b/src/cc/faucet.cpp index 990b79c23..1a04dfed9 100644 --- a/src/cc/faucet.cpp +++ b/src/cc/faucet.cpp @@ -119,8 +119,6 @@ bool FaucetValidate(Eval* eval,const CTransaction &tx) return(PreventCC(eval,tx,preventCCvins,numvins,preventCCvouts,numvouts)); } } - fprintf(stderr,"faucet validated\n"); - return(true); } bool ProcessFaucet(Eval* eval, std::vector paramsNull,const CTransaction &ctx, unsigned int nIn) @@ -131,7 +129,10 @@ bool ProcessFaucet(Eval* eval, std::vector paramsNull,const CTransactio else if ( ctx.vout.size() == 0 ) return eval->Invalid("no-vouts"); if ( FaucetValidate(eval,ctx) != 0 ) + { + fprintf(stderr,"faucet validated\n"); return(true); + } fprintf(stderr,"faucet validate failed\n"); return(false); } diff --git a/src/miner.cpp b/src/miner.cpp index fee14a959..468cddaf3 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -726,7 +726,8 @@ void static BitcoinMiner() if ( komodo_baseid(ASSETCHAINS_SYMBOL) < 0 ) break; } - komodo_chosennotary(¬aryid,chainActive.LastTip()->nHeight,NOTARY_PUBKEY33,(uint32_t)chainActive.LastTip()->GetBlockTime()); + if ( ASSETCHAINS_SYMBOL[0] == 0 ) + komodo_chosennotary(¬aryid,chainActive.LastTip()->nHeight,NOTARY_PUBKEY33,(uint32_t)chainActive.LastTip()->GetBlockTime()); if ( notaryid != My_notaryid ) My_notaryid = notaryid; std::string solver; @@ -786,7 +787,7 @@ void static BitcoinMiner() } if ( ASSETCHAINS_SYMBOL[0] != 0 && ASSETCHAINS_STAKED == 0 ) { - //fprintf(stderr,"%s create new block ht.%d\n",ASSETCHAINS_SYMBOL,Mining_height); + fprintf(stderr,"%s create new block ht.%d\n",ASSETCHAINS_SYMBOL,Mining_height); //sleep(3); } #ifdef ENABLE_WALLET @@ -802,6 +803,7 @@ void static BitcoinMiner() sleep(1); continue; } + fprintf(stderr,"get template\n"); unique_ptr pblocktemplate(ptr); if (!pblocktemplate.get()) { @@ -829,6 +831,7 @@ void static BitcoinMiner() } } IncrementExtraNonce(pblock, pindexPrev, nExtraNonce); + frintf(stderr,"Running KomodoMiner.%s with %u transactions in block (%u bytes)\n",solver.c_str(),pblock->vtx.size(),::GetSerializeSize(*pblock,SER_NETWORK,PROTOCOL_VERSION)); LogPrintf("Running KomodoMiner.%s with %u transactions in block (%u bytes)\n",solver.c_str(),pblock->vtx.size(),::GetSerializeSize(*pblock,SER_NETWORK,PROTOCOL_VERSION)); // // Search @@ -909,6 +912,7 @@ void static BitcoinMiner() sleep(10); break; }*/ + fprintf(stderr,"top of while\n"); // Hash state KOMODO_CHOSEN_ONE = 0; crypto_generichash_blake2b_state state;