From 60023df3a08b90e224c18037240018f5d9adde4c Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 11 Sep 2017 10:15:57 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_socket.c | 2 +- iguana/exchanges/mm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_socket.c b/iguana/exchanges/LP_socket.c index 0d5bc1671..17356d2b1 100644 --- a/iguana/exchanges/LP_socket.c +++ b/iguana/exchanges/LP_socket.c @@ -377,7 +377,7 @@ void LP_dedicatedloop(void *arg) printf("sending.(%s)\n",sitem->str); if ( LP_socketsend(ep->sock,(uint8_t *)sitem->str,(int32_t)strlen(sitem->str)) <= 0 ) { - printf("%s:%u is dead\n",ipaddr,port); + printf("%s:%u is dead\n",ep->ipaddr,ep->port); closesocket(ep->sock); ep->sock = -1; break; diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index b2c02ceb9..d308c9350 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -806,9 +806,9 @@ int main(int argc, const char * argv[]) 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_main (%s)\n",jprint(retjson,0)); + printf("error launching LP_dedicatedloop (%s:%u)\n",ep->ipaddr,ep->port); exit(-1); - } else printf("(%s) launched.(%s)\n",argv[1],passphrase); + } else printf("launched.(%s:%u)\n",ep->ipaddr,ep->port); printf("call test\n"); if ( (1) ) {