From d1bc3a75e9209aa68ba2b946ee445027964bab52 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 23 Jul 2018 20:35:32 -1100 Subject: [PATCH] -print --- src/cc/faucet.cpp | 8 ++++---- src/main.cpp | 4 ++-- src/miner.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cc/faucet.cpp b/src/cc/faucet.cpp index f8cc140e9..afb152121 100644 --- a/src/cc/faucet.cpp +++ b/src/cc/faucet.cpp @@ -63,15 +63,15 @@ bool FaucetExactAmounts(Eval* eval,const CTransaction &tx,int32_t minage,uint64_ numvouts = tx.vout.size(); for (i=0; iGetTxUnconfirmed(tx.vin[i].prevout.hash,vinTx,hashBlock) == 0 ) - return eval->Invalid("cant faucet mempool tx"); + return eval->Invalid("cant find vinTx"); else { - fprintf(stderr,"vini.%d check hash and vout\n",i); + //fprintf(stderr,"vini.%d check hash and vout\n",i); if ( hashBlock == zerohash ) return eval->Invalid("cant faucet from mempool"); if ( (assetoshis= IsFaucetvout(vinTx,tx.vin[i].prevout.n)) != 0 ) diff --git a/src/main.cpp b/src/main.cpp index 592e8bd9b..80d90ba96 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4538,7 +4538,7 @@ bool ProcessNewBlock(bool from_miner,int32_t height,CValidationState &state, CNo bool checked; uint256 hash; int32_t futureblock=0; auto verifier = libzcash::ProofVerifier::Disabled(); hash = pblock->GetHash(); - fprintf(stderr,"ProcessBlock %d\n",(int32_t)chainActive.LastTip()->nHeight); + //fprintf(stderr,"ProcessBlock %d\n",(int32_t)chainActive.LastTip()->nHeight); if ( chainActive.LastTip() != 0 ) komodo_currentheight_set(chainActive.LastTip()->nHeight); checked = CheckBlock(&futureblock,height!=0?height:komodo_block2height(pblock),0,*pblock, state, verifier,0); @@ -4578,7 +4578,7 @@ bool ProcessNewBlock(bool from_miner,int32_t height,CValidationState &state, CNo if (futureblock == 0 && !ActivateBestChain(state, pblock)) return error("%s: ActivateBestChain failed", __func__); - fprintf(stderr,"finished ProcessBlock %d\n",(int32_t)chainActive.LastTip()->nHeight); + //fprintf(stderr,"finished ProcessBlock %d\n",(int32_t)chainActive.LastTip()->nHeight); return true; } diff --git a/src/miner.cpp b/src/miner.cpp index 8ba0ef983..4a2dda285 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -678,12 +678,12 @@ static bool ProcessBlockFound(CBlock* pblock) // Track how many getdata requests this block gets //if ( 0 ) { - fprintf(stderr,"lock cs_wallet\n"); + //fprintf(stderr,"lock cs_wallet\n"); LOCK(wallet.cs_wallet); wallet.mapRequestCount[pblock->GetHash()] = 0; } #endif - fprintf(stderr,"process new block\n"); + //fprintf(stderr,"process new block\n"); // Process this block the same as if we had received it from another node CValidationState state;