Browse Source

Test

etomic
jl777 7 years ago
parent
commit
6e93ea1e41
  1. 6
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_rpc.c

6
iguana/exchanges/LP_nativeDEX.c

@ -18,11 +18,9 @@
// LP_nativeDEX.c // LP_nativeDEX.c
// marketmaker // marketmaker
// //
// selftest and fix rpc port // BCH signing
// verify portfolio, interest to KMD withdraw
// dPoW security -> 4: KMD notarized, 5: BTC notarized, after next notary elections // dPoW security -> 4: KMD notarized, 5: BTC notarized, after next notary elections
// bigendian architectures need to use little endian for sighash calcs // bigendian architectures need to use little endian for sighash calcs
// BCH signing
#include <stdio.h> #include <stdio.h>
struct LP_millistats struct LP_millistats
@ -1200,7 +1198,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
lasthello = (uint32_t)time(NULL); lasthello = (uint32_t)time(NULL);
if ( allgood == 0 ) if ( allgood == 0 )
{ {
printf("RPC port got stuck, start a new thread\n"); printf("RPC port got stuck, close bindsocket\n");
LP_bindsock = -1; LP_bindsock = -1;
closesocket(sock); closesocket(sock);
} }

2
iguana/exchanges/LP_rpc.c

@ -98,7 +98,7 @@ char *issue_hello(uint16_t port)
char url[512]; char url[512];
sprintf(url,"http://127.0.0.1:%u/api/stats/hello",port); sprintf(url,"http://127.0.0.1:%u/api/stats/hello",port);
//printf("getutxo.(%s)\n",url); //printf("getutxo.(%s)\n",url);
return(LP_issue_curl("hello","127.0.0.1",port,url)); return(issue_curlt(url,60)); // might be starting a trade
} }
char *issue_LP_listunspent(char *destip,uint16_t destport,char *symbol,char *coinaddr) char *issue_LP_listunspent(char *destip,uint16_t destport,char *symbol,char *coinaddr)

Loading…
Cancel
Save