test
This commit is contained in:
@@ -96,11 +96,11 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
|||||||
{
|
{
|
||||||
height = pindex->nHeight;
|
height = pindex->nHeight;
|
||||||
txn_count = block.vtx.size();
|
txn_count = block.vtx.size();
|
||||||
for (j=0; j<3; j++)
|
for (j=0; j<13; j++)
|
||||||
{
|
{
|
||||||
if ( txn_count == 0 )
|
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 )
|
if ( ReadBlockFromDisk(block,pindex,1) == 0 )
|
||||||
{
|
{
|
||||||
printf("komodo_connectblock: ht.%d error reading block\n",height);
|
printf("komodo_connectblock: ht.%d error reading block\n",height);
|
||||||
|
|||||||
@@ -2221,6 +2221,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
|
|||||||
|
|
||||||
int64_t nTime4 = GetTimeMicros(); nTimeCallbacks += nTime4 - nTime3;
|
int64_t nTime4 = GetTimeMicros(); nTimeCallbacks += nTime4 - nTime3;
|
||||||
LogPrint("bench", " - Callbacks: %.2fms [%.2fs]\n", 0.001 * (nTime4 - nTime3), nTimeCallbacks * 0.000001);
|
LogPrint("bench", " - Callbacks: %.2fms [%.2fs]\n", 0.001 * (nTime4 - nTime3), nTimeCallbacks * 0.000001);
|
||||||
|
komodo_connectblock(pindex,block);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2503,7 +2504,6 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock *
|
|||||||
BOOST_FOREACH(const CTransaction &tx, pblock->vtx) {
|
BOOST_FOREACH(const CTransaction &tx, pblock->vtx) {
|
||||||
SyncWithWallets(tx, pblock);
|
SyncWithWallets(tx, pblock);
|
||||||
}
|
}
|
||||||
komodo_connectblock(pindexNew,block);
|
|
||||||
// Update cached incremental witnesses
|
// Update cached incremental witnesses
|
||||||
GetMainSignals().ChainTip(pindexNew, pblock, oldTree, true);
|
GetMainSignals().ChainTip(pindexNew, pblock, oldTree, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user