From e8ad0ddf54cff78d8b92c0389ac01249f7f8208d Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 19 Apr 2016 00:00:02 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 7922fa88d..feb81ff55 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -639,7 +639,7 @@ struct iguana_bundle *iguana_externalspent(struct iguana_info *coin,bits256 *pre //printf("%s height.%d firstvout.%d prev.%d ->U%d\n",bits256_str(str,prev_hash),height,TX.firstvout,prev_vout,unspentind); now = (uint32_t)time(NULL); duration = (OS_milliseconds() - startmillis); - //if ( 0 && ((uint64_t)coin->txidfind_num % 5000000) == 2000000 ) + if ( 0 && ((uint64_t)coin->txidfind_num % 5000000) == 2000000 ) printf("%p iguana_txidfind.[%.0f] ave %.2f micros, total %.2f seconds | duration %.3f millis\n",spentbp->ramchain.txbits,coin->txidfind_num,(coin->txidfind_totalmillis*1000.)/coin->txidfind_num,coin->txidfind_totalmillis/1000.,duration); coin->txidfind_totalmillis += duration; coin->txidfind_num += 1.; @@ -976,7 +976,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st starttime = (uint32_t)time(NULL); txidind = B[starti].firsttxidind; spendind = B[starti].firstvin; - //iguana_ramchain_prefetch(coin,&bp->ramchain,0); + iguana_ramchain_prefetch(coin,&bp->ramchain,0); for (i=starti; icurrent )//&& (spendind % 5000000) == 2000000 ) + if ( bp == coin->current && (spendind % 5000000) == 2000000 ) printf("[%-3d:%4d] spendvectors elapsed t.%-3d spendind.%d\n",bp->hdrsi,i,(uint32_t)time(NULL)-starttime,spendind); u = 0; s = &S[spendind];