From d1b7c5cf46e47b665a8ba7666897368ec9e26408 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Aug 2016 13:52:30 -0300 Subject: [PATCH] test --- iguana/iguana_unspents.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 884b8d70b..e5c2d3112 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -929,9 +929,12 @@ int64_t iguana_utxoaddr_gen(struct iguana_info *coin,int32_t maketable) fprintf(stderr,"%d bundles for iguana_utxoaddr_gen.[%d] max.%d\n",hdrsi,coin->utxoaddrind,coin->utxodatasize); HASH_ITER(hh,coin->utxoaddrs,utxoaddr,tmp); { - if ( utxoaddr > 0 ) - checkbalance += utxoaddr->balance; - else printf("error neg or zero balance %.8f\n",dstr(utxoaddr->balance)); + if ( utxoaddr != 0 ) + { + if ( utxoaddr->balance > 0 ) + checkbalance += utxoaddr->balance; + else printf("error neg or zero balance %.8f\n",dstr(utxoaddr->balance)); + } else printf("null utxoaddr?\n"); } printf("checkbalance %.8f vs %.8f\n",dstr(checkbalance),dstr(balance)); return(balance);