jl777 7 years ago
parent
commit
dc0ff5f389
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_network.c

4
iguana/exchanges/LP_nativeDEX.c

@ -735,8 +735,8 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
//fprintf(stderr,".");
if ( LP_mainloop_iter(ctx,myipaddr,mypeer,pubsock,pushaddr,myport,passphrase) != 0 )
nonz++;
if ( LP_mypullsock >= 0 )
nonz += LP_sock_check("SUB",ctx,myipaddr,-1,LP_mypullsock,"127.0.0.1");
//if ( LP_mypullsock >= 0 )
// nonz += LP_sock_check("SUB",ctx,myipaddr,-1,LP_mypullsock,"127.0.0.1");
if ( nonz == 0 )
usleep(1000000 / MAINLOOP_PERSEC);
}

2
iguana/exchanges/LP_network.c

@ -311,7 +311,7 @@ void LP_broadcast_message(int32_t pubsock,char *base,char *rel,bits256 destpub25
jdelete(argjson,"method2");
jaddstr(argjson,"method2",method);
jaddstr(argjson,"method",method);
if ( strncmp(method,"connect",7) == 0 )
if ( strncmp(method,"connect",7) == 0 || strcmp(method,"reserved") == 0 )
printf("CRC32.%u (%s)\n",crc32,msgstr);
LP_broadcast_finish(pubsock,base,rel,msg,argjson,0);
} // else printf("no valid method in (%s)\n",msgstr);

Loading…
Cancel
Save