Browse Source

Test

etomic
jl777 8 years ago
parent
commit
6b3b43ca65
  1. 2
      iguana/exchanges/LP_commands.c
  2. 1
      iguana/exchanges/LP_nativeDEX.c
  3. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_commands.c

@ -236,7 +236,7 @@ cJSON *LP_bestprice(struct LP_utxoinfo *utxo,char *base)
}
if ( (prices[i]= price) != 0. && (bestprice == 0. || price < bestprice) )
bestprice = price;
//printf("i.%d price %.8f bestprice %.8f: (%s)\n",i,price,bestprice,jprint(item,0));
printf("i.%d price %.8f bestprice %.8f: (%s)\n",i,price,bestprice,jprint(item,0));
}
if ( bestprice != 0. )
{

1
iguana/exchanges/LP_nativeDEX.c

@ -100,6 +100,7 @@ struct LP_cacheinfo *LP_cachefind(char *base,char *rel,bits256 txid,int32_t vout
{
printf("expire price %.8f\n",ptr->price);
ptr->price = 0.;
ptr->timestamp = 0;
memset(&ptr->Q,0,sizeof(ptr->Q));
}
return(ptr);

2
iguana/exchanges/LP_rpc.c

@ -155,7 +155,7 @@ double LP_getestimatedrate(char *symbol)
if ( retstr[0] != '-' )
{
rate = atof(retstr) / 1024.;
printf("estimated rate %s -> %.8f\n",retstr,rate);
printf("estimated rate.%s %s -> %.8f\n",coin->symbol,retstr,rate);
}
free(retstr);
}

Loading…
Cancel
Save