From c2f4e555085d705a0d6f0e17857770ecfa42da5d Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 14 Jun 2017 18:53:23 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_forwarding.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_forwarding.c b/iguana/exchanges/LP_forwarding.c index 11c64e84e..7983f634a 100644 --- a/iguana/exchanges/LP_forwarding.c +++ b/iguana/exchanges/LP_forwarding.c @@ -136,9 +136,9 @@ char *LP_forwardhex(int32_t pubsock,bits256 pubkey,char *hexstr) if ( (argjson= cJSON_Parse((char *)data)) != 0 ) { reqjson = LP_dereference(argjson,"forward"); - if ( pubsock < 0 || bits256_cmp(pubkey,LP_mypubkey) == 0 ) - retstr = LP_command_process(LP_mypeer != 0 ? LP_mypeer->ipaddr : "127.0.0.1",LP_mypubsock,reqjson,0,0,LP_profitratio - 1.); - else LP_send(pubsock,jprint(reqjson,0),1); + retstr = LP_command_process(LP_mypeer != 0 ? LP_mypeer->ipaddr : "127.0.0.1",LP_mypubsock,reqjson,0,0,LP_profitratio - 1.); + if ( pubsock >= 0 && bits256_cmp(pubkey,LP_mypubkey) != 0 ) + LP_send(pubsock,jprint(reqjson,0),1); free_json(reqjson); free_json(argjson); }