Browse Source

Test

etomic
jl777 7 years ago
parent
commit
fcabca69d6
  1. 1
      iguana/exchanges/LP_socket.c
  2. 11
      iguana/exchanges/mm.c

1
iguana/exchanges/LP_socket.c

@ -364,6 +364,7 @@ void LP_dedicatedloop(char *symbol,char *ipaddr,uint16_t port)
{
struct pollfd fds; int32_t i,len,flag,timeout = 10; struct stritem *sitem; struct electrum_info *ep;
ep = LP_electrum_info(symbol,ipaddr,port,IGUANA_MAXPACKETSIZE * 10);
printf("ep.%p for %s:%u num.%d\n",ep,ep->ipaddr,ep->port,Num_electrums);
while ( ep->sock >= 0 )
{
flag = 0;

11
iguana/exchanges/mm.c

@ -805,9 +805,12 @@ int main(int argc, const char * argv[])
OS_init();
printf("call test\n");
LP_dedicatedloop("BTC","46.4.125.2",50001);//88.198.241.196",50001);
electrum_test();
while ( 1 )
sleep(1);
if ( (1) )
{
electrum_test();
while ( 1 )
sleep(1);
}
sprintf(dirname,"%s",GLOBAL_DBDIR), OS_ensure_directory(dirname);
sprintf(dirname,"%s/SWAPS",GLOBAL_DBDIR), OS_ensure_directory(dirname);
sprintf(dirname,"%s/PRICES",GLOBAL_DBDIR), OS_ensure_directory(dirname);
@ -821,7 +824,7 @@ int main(int argc, const char * argv[])
exit(-1);
} else printf("(%s) launched.(%s)\n",argv[1],passphrase);
incr = 100.;
while ( 1 )
while ( (1) )
sleep(1);
profitmargin = jdouble(retjson,"profitmargin");
minask = jdouble(retjson,"minask");

Loading…
Cancel
Save