From 850596d6140bf355e49214cf5cc8ef2c6129d012 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Jun 2017 13:00:26 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 0b6c57171..0dc3ab6d1 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -318,7 +318,12 @@ void LP_mainloop(char *myipaddr,struct LP_peerinfo *mypeer,uint16_t mypubport,in LP_priceinfoadd(jstr(item,"coin")); } } - //LP_privkey_updates(pubsock,passphrase); + LP_privkey_updates(pubsock,passphrase,1); + if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)stats_rpcloop,(void *)&myport) != 0 ) + { + printf("error launching stats rpcloop for port.%u\n",myport); + exit(-1); + } while ( 1 ) { if ( 0 && (rand() % 100) == 0 ) @@ -411,12 +416,6 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,double profit printf("couldnt get myipaddr\n"); exit(-1); } - LP_privkey_updates(pubsock,passphrase,1); - if ( OS_thread_create(malloc(sizeof(pthread_t)),NULL,(void *)stats_rpcloop,(void *)&myport) != 0 ) - { - printf("error launching stats rpcloop for port.%u\n",myport); - exit(-1); - } LP_mainloop(myipaddr,mypeer,mypubport,pubsock,pushaddr,pullsock,myport,passphrase,profitmargin,jobj(argjson,"coins"),jstr(argjson,"seednode")); }