jl777 7 years ago
parent
commit
26c1ea9b8d
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 2
      iguana/exchanges/LP_prices.c
  3. 2
      iguana/exchanges/LP_socket.c

2
iguana/exchanges/LP_ordermatch.c

@ -607,7 +607,7 @@ struct LP_utxoinfo *LP_bestutxo(double *ordermatchpricep,int64_t *bestsatoshisp,
vout = jint(item,"vout"); vout = jint(item,"vout");
vol = jdouble(item,"volume"); vol = jdouble(item,"volume");
metric = price / bestprice; metric = price / bestprice;
printf("metric %f vol %f add pings numutxos.%d min %.8f max %.8f\n",metric,vol,jint(item,"numutxos"),jdouble(item,"minvolume"),jdouble(item,"maxvolume")); printf("maxdest %.8f metric %f vol %f add pings numutxos.%d min %.8f max %.8f\n",dstr(maxdestsatoshis),metric,vol,jint(item,"numutxos"),jdouble(item,"minvolume"),jdouble(item,"maxvolume"));
// check utxos > 1 for pubkey, SPV validate recv'ed // check utxos > 1 for pubkey, SPV validate recv'ed
/*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 ) /*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 )
{ {

2
iguana/exchanges/LP_prices.c

@ -636,7 +636,7 @@ int32_t LP_orderbook_utxoentries(uint32_t now,int32_t polarity,char *base,char *
} }
}*/ }*/
} }
printf("pubp.(%s) %.8f %p\n",coinaddr,price,ap); //printf("pubp.(%s) %.8f %p\n",coinaddr,price,ap);
} }
return(num); return(num);
} }

2
iguana/exchanges/LP_socket.c

@ -26,7 +26,7 @@
#include <WinSock2.h> #include <WinSock2.h>
#endif #endif
#define ELECTRUM_TIMEOUT 10 #define ELECTRUM_TIMEOUT 3
int32_t LP_socket(int32_t bindflag,char *hostname,uint16_t port) int32_t LP_socket(int32_t bindflag,char *hostname,uint16_t port)
{ {

Loading…
Cancel
Save