From cd178ab406037d561d99299c13484e4cd4c20aaa Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 21 Jan 2018 20:04:33 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_nativeDEX.c | 3 +-- iguana/exchanges/LP_network.c | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index f0a6fcedd..e423be2ac 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -1258,10 +1258,9 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu printf(">>>>>>>>> myipaddr.(%s) (%s) valid.%d pubbindaddr.%s pubsock.%d\n",bindaddr,subaddr,valid,bindaddr,pubsock); LP_mypubsock = pubsock; } - printf("got %s, initpeers\n",myipaddr); + printf("got %s, initpeers. LP_mypubsock.%d\n",myipaddr,LP_mypubsock); LP_initpeers(pubsock,mypeer,myipaddr,myport,jstr(argjson,"seednode"),mypullport,mypubport); RPC_port = myport; - printf("get public socket\n"); LP_mypullsock = LP_initpublicaddr(ctx,&mypullport,pushaddr,myipaddr,mypullport,0); strcpy(LP_publicaddr,pushaddr); LP_publicport = mypullport; diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index 049d7a59f..6d11dbdc7 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -304,6 +304,7 @@ void LP_broadcast_finish(int32_t pubsock,char *base,char *rel,uint8_t *msg,cJSON msglen = (int32_t)strlen((char *)msg) + 1; if ( crc32 == 0 ) crc32 = calc_crc32(0,&msg[2],msglen - 2); + printf("crc32.%x IAMLP.%d pubsock.%d\n",crc32,G.LP_IAMLP,pubsock); #ifdef FROM_MARKETMAKER if ( G.LP_IAMLP == 0 ) #else