jl777 8 years ago
parent
commit
ccd629415d
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_ordermatch.c

2
iguana/exchanges/LP_nativeDEX.c

@ -732,7 +732,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
while ( 1 ) while ( 1 )
{ {
nonz = 0; nonz = 0;
fprintf(stderr,"."); //fprintf(stderr,".");
if ( LP_mainloop_iter(ctx,myipaddr,mypeer,pubsock,pushaddr,myport,passphrase) != 0 ) if ( LP_mainloop_iter(ctx,myipaddr,mypeer,pubsock,pushaddr,myport,passphrase) != 0 )
nonz++; nonz++;
if ( LP_mypullsock >= 0 ) if ( LP_mypullsock >= 0 )

2
iguana/exchanges/LP_ordermatch.c

@ -820,6 +820,8 @@ char *LP_trade(void *ctx,char *myipaddr,int32_t mypubsock,struct LP_quoteinfo *q
if ( aliceutxo->S.swap != 0 ) if ( aliceutxo->S.swap != 0 )
break; break;
sleep(3); sleep(3);
price = LP_query(ctx,myipaddr,mypubsock,"connect",qp);
LP_requestinit(&qp->R,qp->srchash,qp->desthash,qp->srccoin,qp->satoshis-qp->txfee,qp->destcoin,qp->destsatoshis-qp->desttxfee,qp->timestamp,qp->quotetime,DEXselector);
} }
if ( aliceutxo->S.swap == 0 ) if ( aliceutxo->S.swap == 0 )
{ {

Loading…
Cancel
Save