diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index b83067aeb..c7a3564fe 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -424,7 +424,6 @@ char *LP_pricepings(void *ctx,char *myipaddr,int32_t pubsock,char *base,char *re { struct iguana_info *basecoin,*relcoin,*kmd; struct LP_address *ap; char pubsecpstr[67]; uint32_t numutxos,timestamp; uint64_t price64,median,minsize,maxsize; bits256 zero; cJSON *reqjson; reqjson = cJSON_CreateObject(); - printf("pricepings %s/%s\n",base,rel); if ( (basecoin= LP_coinfind(base)) != 0 && (relcoin= LP_coinfind(rel)) != 0 )//&& basecoin->electrum == 0 )//&& relcoin->electrum == 0 ) { memset(zero.bytes,0,sizeof(zero)); diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index 931977b0d..3263cd16d 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -313,7 +313,8 @@ int32_t LP_address_minmax(uint64_t *medianp,uint64_t *minp,uint64_t *maxp,struct } if ( m > 1 ) { - revsort64s(buf,m,sizeof(*buf)); + //revsort64s(buf,m,sizeof(*buf)); + qsort(buf,m,sizeof(*buf),_decreasing_uint64); if ( max == buf[0] && max2 == buf[1] ) { for (i=1; i