From b5c23fc6944cddc0c28dbc8667c73c2361450958 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 6 Apr 2016 01:55:57 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index b35bd6cb6..fe85bb9cf 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -480,7 +480,7 @@ struct iguana_bundle *iguana_externalspent(struct iguana_info *coin,bits256 *pre iguana_ramchain_prefetch(coin,&spentbp->ramchain,prefetchflag); spentbp->lastprefetch = now; } - else if ( (duration > 1 || duration > (10 * coin->txidfind_totalmillis)/coin->txidfind_num) && (rand() % (IGUANA_NUMHELPERS>>1)) == 0 && now >= spentbp->lastprefetch+coin->PREFETCHLAG ) + else if ( (duration > 10 || duration > (10 * coin->txidfind_totalmillis)/coin->txidfind_num) && (rand() % (IGUANA_NUMHELPERS>>1)) == 0 && now >= spentbp->lastprefetch+coin->PREFETCHLAG ) //if ( duration > 10 && spentbp->lastprefetch == 0 ) { //printf("slow txidfind %.2f vs %.2f prefetch[%d] from.[%d] lag.%ld last.%u\n",duration,coin->txidfind_totalmillis/coin->txidfind_num,spentbp->hdrsi,ramchain->H.data->height/coin->chain->bundlesize,time(NULL) - spentbp->lastprefetch,spentbp->lastprefetch); @@ -488,7 +488,7 @@ struct iguana_bundle *iguana_externalspent(struct iguana_info *coin,bits256 *pre spentbp->lastprefetch = now; } } - if ( ((uint64_t)coin->txidfind_num % 10000) == 0 ) + if ( ((uint64_t)coin->txidfind_num % 1000000) == 0 ) printf("iguana_txidfind.[%.0f] ave %.2f micros, total %.2f seconds\n",coin->txidfind_num,(coin->txidfind_totalmillis*1000.)/coin->txidfind_num,coin->txidfind_totalmillis/1000.); } else printf("illegal hdrsi.%d prev_hash.(%s) for bp.[%d]\n",hdrsi,bits256_str(str,prev_hash),spent_hdrsi); }