From 2fec5950639895cf4b14c2df79c9c70571712185 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 14 Jan 2016 14:06:05 -0300 Subject: [PATCH] test --- iguana/SuperNET.c | 4 ++-- iguana/main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index 1d6b06dca..14498df52 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -484,12 +484,12 @@ void SuperNET_init(struct supernet_info *myinfo,uint16_t PUBport,uint16_t LBport if ( ipaddr != 0 ) myinfo->LBsock = nn_createsocket(myinfo,myinfo->LBpoint,1,"NN_REP",NN_REP,myinfo->LBport,sendtimeout,recvtimeout); } else myinfo->reqsock = -1; + iguana_launch(iguana_coinadd("BTCD"),"SuperNET",SuperNET_loop,myinfo,IGUANA_PERMTHREAD); if ( myinfo->LBsock >= 0 || myinfo->PUBsock >= 0 ) { - iguana_launch(iguana_coinadd("BTCD"),"SuperNET",SuperNET_loop,myinfo,IGUANA_PERMTHREAD); SuperNET_announce(myinfo,"ramchain"); } else SuperNET_announce(myinfo,"pangea"); - printf("LBsock.%d %d, PUBsock.%d %d\n",myinfo->LBsock,myinfo->reqsock,myinfo->PUBsock,myinfo->subsock); + printf("%s LBsock.%d %d, %s PUBsock.%d %d\n",myinfo->LBpoint,myinfo->LBsock,myinfo->reqsock,myinfo->PUBpoint,myinfo->PUBsock,myinfo->subsock); } #endif diff --git a/iguana/main.c b/iguana/main.c index 0cb14eea7..a8721ca9d 100644 --- a/iguana/main.c +++ b/iguana/main.c @@ -328,7 +328,7 @@ void iguana_main(void *arg) if ( arg != 0 ) SuperNET_JSON(&MYINFO,cJSON_Parse(arg),0); #ifndef MINIGUANA - SuperNET_init(&MYINFO,MYINFO.PUBport,MYINFO.LBport); + SuperNET_init(&MYINFO,0,0); #endif //init_InstantDEX(); while ( 1 )