jl777 7 years ago
parent
commit
75f8321753
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 6
      iguana/exchanges/LP_prices.c

2
iguana/exchanges/LP_ordermatch.c

@ -398,7 +398,7 @@ double LP_query(void *ctx,char *myipaddr,int32_t mypubsock,char *method,struct L
break; break;
} }
} }
usleep(1000000); usleep(250000);
} }
return(price); return(price);
} }

6
iguana/exchanges/LP_prices.c

@ -392,12 +392,12 @@ double LP_pricecache(struct LP_quoteinfo *qp,char *base,char *rel,bits256 txid,i
ptr->price = (double)ptr->Q.destsatoshis / ptr->Q.satoshis; ptr->price = (double)ptr->Q.destsatoshis / ptr->Q.satoshis;
if ( LP_pricevalid(ptr->price) <= 0 ) if ( LP_pricevalid(ptr->price) <= 0 )
ptr->price = 0.; ptr->price = 0.;
//printf("LP_pricecache: set %s/%s ptr->price %.8f\n",base,rel,ptr->price); printf("LP_pricecache: set %s/%s ptr->price %.8f\n",base,rel,ptr->price);
} }
//printf("found %s/%s %.8f\n",base,rel,ptr->price); printf("found %s/%s %.8f\n",base,rel,ptr->price);
return(ptr->price); return(ptr->price);
} }
//char str[65]; printf("cachemiss %s/%s %s/v%d\n",base,rel,bits256_str(str,txid),vout); char str[65]; printf("cachemiss %s/%s %s/v%d\n",base,rel,bits256_str(str,txid),vout);
return(0.); return(0.);
} }

Loading…
Cancel
Save