From b13d57eaac871d6e3b230bd8a087c1fb103e0303 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 6 Jun 2017 19:20:07 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_utxos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index 90034077d..54d517829 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -401,7 +401,7 @@ uint64_t LP_privkey_init(struct LP_peerinfo *mypeer,int32_t mypubsock,char *symb } //printf("array.%d\n",n); used = 0; - while ( used < n ) + while ( used < n-1 ) { printf("used.%d of n.%d\n",used,n); if ( (i= LP_maxvalue(values,n)) >= 0 ) @@ -444,6 +444,7 @@ uint64_t LP_privkey_init(struct LP_peerinfo *mypeer,int32_t mypubsock,char *symb } free_json(array); } + printf("privkey.%s %.8f\n",symbol,dstr(total)); return(total); }