Browse Source

Test

etomic
jl777 8 years ago
parent
commit
ed7fe542ce
  1. 4
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_forwarding.c
  3. 2
      iguana/exchanges/LP_nativeDEX.c

4
iguana/exchanges/LP_commands.c

@ -50,7 +50,9 @@ char *stats_JSON(char *myipaddr,int32_t pubsock,double profitmargin,cJSON *argjs
printf("stats_JSON no method: (%s) (%s:%u)\n",jprint(argjson,0),ipaddr,argport);
return(0);
}
if ( strcmp(method,"help") == 0 )
if ( strcmp(method,"hello") == 0 )
return(0);
else if ( strcmp(method,"help") == 0 )
return(clonestr("{\"result\":\" \
available localhost RPC commands:\n \
setprice(base, rel, price)\n\

2
iguana/exchanges/LP_forwarding.c

@ -65,7 +65,7 @@ int32_t LP_hello(struct LP_forwardinfo *ptr)
return(i);
}
}
printf("%d iterations on nn_poll and %s pushsock still not ready\n",i,ptr->pushaddr);
//printf("%d iterations on nn_poll and %s pushsock still not ready\n",i,ptr->pushaddr);
return(-1);
}
return(0);

2
iguana/exchanges/LP_nativeDEX.c

@ -281,7 +281,7 @@ int32_t LP_mainloop_iter(char *myipaddr,struct LP_peerinfo *mypeer,int32_t pubso
}
}
nonz += LP_pullsock_check(myipaddr,pubsock,pullsock,profitmargin);
if ( (counter % 60) == 42 )
if ( (counter % 600) == 42 )
LP_hellos();
counter++;
return(nonz);

Loading…
Cancel
Save