From 4211a33565957792d7c8234651c69b266b97d6bf Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 10 Nov 2017 12:37:33 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_socket.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/iguana/exchanges/LP_socket.c b/iguana/exchanges/LP_socket.c index 8faaedaaf..bbf31294e 100644 --- a/iguana/exchanges/LP_socket.c +++ b/iguana/exchanges/LP_socket.c @@ -408,6 +408,8 @@ int32_t electrum_kickstart(struct electrum_info *ep) return(0); } +int32_t zeroval() { return(0); } + cJSON *electrum_submit(char *symbol,struct electrum_info *ep,cJSON **retjsonp,char *method,char *params,int32_t timeout) { // queue id and string and callback @@ -416,6 +418,12 @@ cJSON *electrum_submit(char *symbol,struct electrum_info *ep,cJSON **retjsonp,ch ep = electrum_server(symbol,0); while ( ep != 0 ) { + if ( strcmp(ep->symbol,symbol) != 0 ) + { + printf("ep.%p %s %s:%u called for [%s]???\n",ep,ep->symbol,ep->ipaddr,ep->port,symbol); + int32_t i = 1 / zeroval(); + printf("it should be dead already.%d\n",i); + } if ( ep != 0 && ep->sock >= 0 && retjsonp != 0 ) { *retjsonp = 0;