jl777 7 years ago
parent
commit
30adca2ba0
  1. 1
      iguana/exchanges/LP_signatures.c
  2. 3
      iguana/exchanges/LP_utxo.c

1
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));

3
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<m; i++)

Loading…
Cancel
Save