jl777 7 years ago
parent
commit
cd178ab406
  1. 3
      iguana/exchanges/LP_nativeDEX.c
  2. 1
      iguana/exchanges/LP_network.c

3
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;

1
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

Loading…
Cancel
Save