From 93bb866cebbf1fd7cdf624869b53dabf8a14c821 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 17 Apr 2016 21:07:21 -0500 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_unspents.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index b34c63e4b..66ea61f76 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -385,7 +385,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert //printf("spendvectors retval.%d\n",retval); if ( retval > 0 ) { - printf("GENERATED UTXO.%d for ht.%d duration %d seconds\n",bp->hdrsi,bp->bundleheight,(uint32_t)time(NULL) - bp->startutxo); + //printf("GENERATED UTXO.%d for ht.%d duration %d seconds\n",bp->hdrsi,bp->bundleheight,(uint32_t)time(NULL) - bp->startutxo); num++; } bp->utxofinish = (uint32_t)time(NULL); diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 614f3d1b5..04666977b 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1946,7 +1946,9 @@ int32_t iguana_realtime_update(struct iguana_info *coin) coin->blocks.RO[bp->bundleheight+bundlei] = block->RO; coin->RTheight++; //printf(">>>> RT.%d hwm.%d L.%d T.%d U.%d S.%d P.%d X.%d -> size.%ld\n",coin->RTheight,coin->blocks.hwmchain.height,coin->longestchain,dest->H.txidind,dest->H.unspentind,dest->H.spendind,dest->pkind,dest->externalind,(long)dest->H.data->allocsize); - coin->RTramchain.H.data->numblocks = bundlei + 1; + if ( coin->RTramchain.H.data != 0 ) + coin->RTramchain.H.data->numblocks = bundlei + 1; + else break; } else break; } }