From 93e4486a75f55ca7466fe7b5bd9bf9d7a3bb0d0d Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Mar 2018 15:29:41 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_utxo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index b033a3f11..d9f5d39ea 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -300,7 +300,7 @@ int32_t LP_address_minmax(uint64_t *medianp,uint64_t *minp,uint64_t *maxp,struct value = LP_listunspent_parseitem(coin,&txid,&vout,&height,item); if ( LP_allocated(txid,vout) != 0 ) continue; - m++; + buf[m++] = value; if ( value > max ) { max2 = max; @@ -313,8 +313,7 @@ int32_t LP_address_minmax(uint64_t *medianp,uint64_t *minp,uint64_t *maxp,struct } if ( m > 1 ) { - //revsort64s(buf,m,sizeof(*buf)); - qsort(buf,m,sizeof(*buf),_decreasing_uint64); + revsort64s(buf,m,sizeof(*buf)); if ( max == buf[0] && max2 == buf[1] ) { for (i=1; i