From e0440cc39cef6315df73ca33c4ec9ae119ca71c3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 27 Apr 2017 09:27:22 +0300 Subject: [PATCH] Test --- src/komodo.h | 2 +- src/komodo_bitcoind.h | 2 +- src/main.cpp | 6 +++--- src/wallet/wallet.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index eed3e8355..663edb1e2 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 5e576405a..08fb4be51 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -553,7 +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); + //fprintf(stderr,"disconnect ht.%d\n",pindex->nHeight); komodo_init(pindex->nHeight); if ( (sp= komodo_stateptr(symbol,dest)) != 0 ) { diff --git a/src/main.cpp b/src/main.cpp index 97d2cbd8b..05968b2ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2231,7 +2231,7 @@ static int64_t nTimeTotal = 0; bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pindex, CCoinsViewCache& view, bool fJustCheck) { const CChainParams& chainparams = Params(); - fprintf(stderr,"connectblock ht.%d\n",(int32_t)pindex->nHeight); + //fprintf(stderr,"connectblock ht.%d\n",(int32_t)pindex->nHeight); AssertLockHeld(cs_main); /*<<<<<<< HEA // Check it again in case a previous version let a bad block in @@ -2660,7 +2660,7 @@ bool static DisconnectTip(CValidationState &state) { SyncWithWallets(tx, NULL); } // Update cached incremental witnesses - fprintf(stderr,"chaintip false\n"); + //fprintf(stderr,"chaintip false\n"); GetMainSignals().ChainTip(pindexDelete, &block, newTree, false); return true; } @@ -2731,7 +2731,7 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock * SyncWithWallets(tx, pblock); } // Update cached incremental witnesses - fprintf(stderr,"chaintip true\n"); + //fprintf(stderr,"chaintip true\n"); GetMainSignals().ChainTip(pindexNew, pblock, oldTree, true); int64_t nTime6 = GetTimeMicros(); nTimePostConnect += nTime6 - nTime5; nTimeTotal += nTime6 - nTime1; diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 148ebe30e..a18868dc2 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -643,7 +643,7 @@ void CWallet::IncrementNoteWitnesses(const CBlockIndex* pindex, const CBlock* pblockIn, ZCIncrementalMerkleTree& tree) { - fprintf(stderr,"A increment witness cache -> %d\n",(int32_t)nWitnessCacheSize); + //fprintf(stderr,"A increment witness cache -> %d\n",(int32_t)nWitnessCacheSize); { LOCK(cs_wallet); for (std::pair& wtxItem : mapWallet) { @@ -786,7 +786,7 @@ void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex) } } } - fprintf(stderr,"decrement witness cache -> %d\n",(int32_t)nWitnessCacheSize); + //fprintf(stderr,"decrement witness cache -> %d\n",(int32_t)nWitnessCacheSize); if ( nWitnessCacheSize > 1 ) nWitnessCacheSize -= 1; else