jl777 7 years ago
parent
commit
316e4f8395
  1. 2
      iguana/exchanges/LP_commands.c
  2. 5
      iguana/exchanges/LP_nativeDEX.c

2
iguana/exchanges/LP_commands.c

@ -439,7 +439,7 @@ dividends(coin, height, <args>)\n\
else
{
memset(zero.bytes,0,sizeof(zero));
printf("broadcast.(%s)\n",jprint(reqjson,0));
//printf("broadcast.(%s)\n",jprint(reqjson,0));
LP_broadcast_message(LP_mypubsock,base!=0?base:jstr(argjson,"coin"),rel,zero,jprint(reqjson,0));
}
retstr = clonestr("{\"result\":\"success\"}");

5
iguana/exchanges/LP_nativeDEX.c

@ -288,8 +288,11 @@ int32_t LP_sock_check(char *typestr,void *ctx,char *myipaddr,int32_t pubsock,int
Broadcaststr = 0;
if ( (argjson= cJSON_Parse(str)) != 0 )
{
if ( (retstr= stats_JSON(ctx,myipaddr,pubsock,argjson,remoteaddr,0)) != 0 )
if ( LP_tradecommand(ctx,myipaddr,pubsock,argjson,0,0) <= 0 )
{
if ( (retstr= stats_JSON(ctx,myipaddr,pubsock,argjson,remoteaddr,0)) != 0 )
free(retstr);
}
//LP_tradecommand(ctx,myipaddr,pubsock,argjson,0,0);
free_json(argjson);
}

Loading…
Cancel
Save