From b894155b367d73608bcb0e59b2a29fde4496606f Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 21 Apr 2016 03:30:59 -0500 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 3e5ce021f..d5a7c64cf 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -912,10 +912,10 @@ int32_t iguana_pkhasharray(struct iguana_info *coin,cJSON *array,int32_t minconf printf("iguana_pkhasharray: unexpected access when RTramchain_busy\n"); return(-1); } - if ( lastheight/coin->chain->bundlesize < max ) - max = lastheight/coin->chain->bundlesize; for (total=i=n=0; ibundlescount; i++) { + if ( i > lastheight/coin->chain->bundlesize ) + break; if ( iguana_pkhashfind(coin,&ramchain,&deposits,&lastunspentind,&P[n],rmd160,i,i) != 0 ) { if ( (netbalance= iguana_pkhashbalance(coin,array,&spent,&m,ramchain,&P[n],lastunspentind,rmd160,coinaddr,pubkey33,i,lastheight)) != deposits-spent )