From e57b2a05fa1eb5f33ed8a93c778443f820b9df2b Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Mon, 17 Dec 2018 19:14:49 +0800 Subject: [PATCH] print --- src/main.cpp | 3 ++- src/miner.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index cc97b366f..8b88d44b3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3311,7 +3311,8 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin { if (!view.HaveInputs(tx)) { - return state.DoS(100, error("ConnectBlock(): inputs missing/spent %s",tx.GetHash().ToString().c_str()), + fprintf(stderr, "Connect Block missing inputs tx_number.%d \nvin txid.%s vout.%ld \n",i,tx.vin[0].prevout.hash.ToString().c_str(),tx.vin[0].prevout.n); + return state.DoS(100, error("ConnectBlock(): inputs missing/spent"), REJECT_INVALID, "bad-txns-inputs-missingorspent"); } // are the JoinSplit's requirements met? diff --git a/src/miner.cpp b/src/miner.cpp index 9e63da568..dfadf2e33 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -1579,7 +1579,6 @@ void static BitcoinMiner() LogPrintf("Block %d : PoS %d%% vs target %d%% \n",Mining_height,percPoS,(int32_t)ASSETCHAINS_STAKED); } } - //bool breakLoop; while (true) { /*if ( KOMODO_INSYNC == 0 )