diff --git a/src/komodo.h b/src/komodo.h index b8654e2e9..153779c92 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -96,11 +96,11 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) { height = pindex->nHeight; txn_count = block.vtx.size(); - for (j=0; j<3; j++) + for (j=0; j<13; j++) { if ( txn_count == 0 ) { - printf("no transactions for ht.%d\n",height); + //printf("no transactions for ht.%d\n",height); if ( ReadBlockFromDisk(block,pindex,1) == 0 ) { printf("komodo_connectblock: ht.%d error reading block\n",height); diff --git a/src/main.cpp b/src/main.cpp index 79ad1d852..481ee75e9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2221,6 +2221,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin int64_t nTime4 = GetTimeMicros(); nTimeCallbacks += nTime4 - nTime3; LogPrint("bench", " - Callbacks: %.2fms [%.2fs]\n", 0.001 * (nTime4 - nTime3), nTimeCallbacks * 0.000001); + komodo_connectblock(pindex,block); return true; } @@ -2503,7 +2504,6 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock * BOOST_FOREACH(const CTransaction &tx, pblock->vtx) { SyncWithWallets(tx, pblock); } - komodo_connectblock(pindexNew,block); // Update cached incremental witnesses GetMainSignals().ChainTip(pindexNew, pblock, oldTree, true);