Browse Source

Test

etomic
jl777 8 years ago
parent
commit
10bb55f5fb
  1. 4
      iguana/exchanges/LP_ordermatch.c

4
iguana/exchanges/LP_ordermatch.c

@ -859,8 +859,8 @@ struct LP_utxoinfo *LP_buyutxo(double *ordermatchpricep,int64_t *bestsatoshisp,i
item = jitem(asks,i); item = jitem(asks,i);
price = jdouble(item,"price"); price = jdouble(item,"price");
if ( price/maxprice < .9 ) if ( price/maxprice < .9 )
price *= 1.025; price *= 1.05;
else price *= 1.001; else price *= 1.01;
pubkey = jbits256(item,"pubkey"); pubkey = jbits256(item,"pubkey");
if ( bits256_nonz(destpubkey) != 0 && bits256_cmp(destpubkey,pubkey) != 0 ) if ( bits256_nonz(destpubkey) != 0 && bits256_cmp(destpubkey,pubkey) != 0 )
continue; continue;

Loading…
Cancel
Save