diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index d308c9350..6e0e4ee60 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -803,18 +803,15 @@ int main(int argc, const char * argv[]) double profitmargin,maxexposure,incrratio,start_rel,start_base,minask,maxbid,incr; cJSON *retjson,*loginjson; int32_t i; OS_init(); - ep = LP_electrum_info("BTC","46.4.125.2",50001,IGUANA_MAXPACKETSIZE * 10); //88.198.241.196" - if ( ep != 0 && OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_dedicatedloop,(void *)ep) != 0 ) - { - printf("error launching LP_dedicatedloop (%s:%u)\n",ep->ipaddr,ep->port); - exit(-1); - } else printf("launched.(%s:%u)\n",ep->ipaddr,ep->port); - printf("call test\n"); if ( (1) ) { + ep = LP_electrum_info("BTC","46.4.125.2",50001,IGUANA_MAXPACKETSIZE * 10); //88.198.241.196" + if ( ep != 0 && OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)LP_dedicatedloop,(void *)ep) != 0 ) + { + printf("error launching LP_dedicatedloop (%s:%u)\n",ep->ipaddr,ep->port); + exit(-1); + } else printf("launched.(%s:%u)\n",ep->ipaddr,ep->port); 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);