@ -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. )
{
@ -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);
@ -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);