jl777 7 years ago
parent
commit
d79d42663f
  1. 1
      iguana/exchanges/LP_ordermatch.c

1
iguana/exchanges/LP_ordermatch.c

@ -607,6 +607,7 @@ struct LP_utxoinfo *LP_bestutxo(double *ordermatchpricep,int64_t *bestsatoshisp,
vout = jint(item,"vout");
vol = jdouble(item,"volume");
metric = price / bestprice;
printf("metric %f vol %f\n",metric,vol);
if ( (butxo= LP_utxofind(1,txid,vout)) != 0 && (long long)(vol*SATOSHIDEN) == butxo->S.satoshis && LP_isavailable(butxo) > 0 && LP_ismine(butxo) == 0 && butxo->T.bestflag == 0 )
{
printf("got butxo? %p\n",butxo);

Loading…
Cancel
Save