From d1ee4816a7c28c8c654329eef9b5e5c2a3b5b7fd Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 21 Apr 2016 01:54:59 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 9dcf38816..e674bb373 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -863,9 +863,9 @@ int64_t iguana_pkhashbalance(struct iguana_info *coin,cJSON *array,int64_t *spen while ( unspentind > 0 ) { (*nump)++; + deposits += U[unspentind].value; if ( iguana_spentflag(coin,&RTspend,&spentheight,ramchain,hdrsi,unspentind,height,U[unspentind].value) == 0 ) { - deposits += U[unspentind].value; if ( array != 0 ) jaddi(array,iguana_unspentjson(coin,hdrsi,unspentind,T,&U[unspentind],rmd160,coinaddr,pubkey33)); } else spent += U[unspentind].value;