From 1de4a48565804f85582f085564ca81334faf8133 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Apr 2016 12:10:39 -0600 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 09fadbe4c..dbff722d7 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -147,7 +147,7 @@ int32_t iguana_volatileupdate(struct iguana_info *coin,int32_t incremental,struc } else // do the equivalent of historical, ie mark as spent, linked list, balance { - if ( iguana_utxoupdate(coin,spent_hdrsi,spent_unspentind,spent_pkind,spent_value,spendind,fromheight) == 0 ) + if ( 1 || iguana_utxoupdate(coin,spent_hdrsi,spent_unspentind,spent_pkind,spent_value,spendind,fromheight) == 0 ) return(0); } printf("iguana_volatileupdate: [%d] spent.(u%u %.8f pkind.%d) double spend? at ht.%d [%d] spendind.%d\n",spent_hdrsi,spent_unspentind,dstr(spent_value),spent_pkind,fromheight,fromheight/coin->chain->bundlesize,spendind); @@ -954,7 +954,7 @@ int32_t iguana_RTutxo(struct iguana_info *coin,struct iguana_bundle *bp,struct i rdata = spentbp->ramchain.H.data; if ( now > spentbp->lastprefetch+10 ) { - //printf("RT prefetch[%d] from.[%d] lag.%d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch); + printf("RT prefetch[%d] from.[%d] lag.%d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch); iguana_ramchain_prefetch(coin,&spentbp->ramchain); spentbp->lastprefetch = now; }