diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 1a98996a2..3e6486f70 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -97,7 +97,7 @@ available localhost RPC commands:\n \ pricearray(base, rel, firsttime=0, lasttime=-1, timescale=60) -> [timestamp, avebid, aveask, highbid, lowask]\n\ setprice(base, rel, price)\n\ autoprice(base, rel, price, margin, type)\n\ -goal(coin=*, perc=)\n\ +goal(coin=*, val=)\n\ myprice(base, rel)\n\ enable(coin)\n\ disable(coin)\n\ diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 50bcb42fd..d998b4b81 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -105,25 +105,6 @@ void iguana_recvalloc(struct iguana_info *coin,int32_t numitems) //coin->blocks.maxbits = numitems; } -static int _decreasing_double(const void *a,const void *b) -{ -#define double_a (*(double *)a) -#define double_b (*(double *)b) - if ( double_b > double_a ) - return(1); - else if ( double_b < double_a ) - return(-1); - return(0); -#undef double_a -#undef double_b -} - -static int32_t revsortds(double *buf,uint32_t num,int32_t size) -{ - qsort(buf,num,size,_decreasing_double); - return(0); -} - double iguana_metric(struct iguana_peer *addr,uint32_t now,double decay) { int32_t duration; double metric = addr->recvblocks * addr->recvtotal;