This commit is contained in:
jl777
2016-10-18 15:06:38 -03:00
parent a96439f562
commit ba94466bb3
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);