From 5d5ebbb2697c05c045bef504b30083453708da9f Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Apr 2016 19:52:35 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 70b6fd43b..7cff4cabe 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -271,7 +271,7 @@ int32_t iguana_volatileupdate(struct iguana_info *coin,int32_t incremental,struc if ( spentchain->allocatedA == 0 || spentchain->allocatedU == 0 ) { iguana_volatilesalloc(coin,spentchain); - printf("volatilesalloc.[%d] ",spent_hdrsi); + fprintf(stderr,"volatilesalloc.[%d] ",spent_hdrsi); } if ( incremental == 0 ) { @@ -1103,7 +1103,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig } //if ( coin->PREFETCHLAG > 0 ) iguana_ramchain_prefetch(coin,ramchain,0); - printf("BALANCEGEN.[%d] ",bp->hdrsi); + fprintf(stderr,"BALANCEGEN.[%d] ",bp->hdrsi); txidind = spendind = rdata->firsti; for (i=0; in; i++) { @@ -1749,7 +1749,6 @@ int32_t iguana_realtime_update(struct iguana_info *coin) double startmillis0; static double totalmillis0; static int32_t num0; struct iguana_bundle *bp; struct iguana_ramchaindata *rdata; int32_t bundlei,i,n,flag=0; bits256 hash2; struct iguana_peer *addr; struct iguana_block *block=0; struct iguana_blockRO *B; struct iguana_ramchain *dest=0,blockR; - return(0); //starti = coin->RTheight % coin->chain->bundlesize; if ( (bp= coin->current) != 0 && bp->hdrsi == coin->longestchain/coin->chain->bundlesize && bp->hdrsi == coin->balanceswritten && coin->RTheight >= bp->bundleheight && coin->RTheight < bp->bundleheight+bp->n && ((coin->RTheight <= coin->blocks.hwmchain.height && time(NULL) > bp->lastRT) || time(NULL) > bp->lastRT+10) ) {