From c7c2b4d35a174f2949aa49c999c6c5d258e8ceec Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 19 Jul 2017 16:06:01 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index b1147c9a0..cd717a102 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -677,7 +677,7 @@ void LP_pricefeedupdate(bits256 pubkey,char *base,char *rel,double price) } if ( (pubp= LP_pubkeyadd(pubkey)) != 0 ) { - if ( fabs(pubp->matrix[basepp->ind][relpp->ind] - price) > SMALLVAL ) + if ( (rand() % 10) == 0 && fabs(pubp->matrix[basepp->ind][relpp->ind] - price) > SMALLVAL ) printf("PRICEFEED UPDATE.(%-6s/%6s) %12.8f %s %12.8f\n",base,rel,price,bits256_str(str,pubkey),1./price); { pubp->matrix[basepp->ind][relpp->ind] = price;