From 429ccaf65bbfaf773cab4b1163cf59f8ee958bc3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 29 May 2017 19:59:24 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 891e99d78..29cd11dac 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -59,6 +59,7 @@ void LP_command(struct LP_peerinfo *mypeer,int32_t pubsock,cJSON *argjson,uint8_ retjson = cJSON_CreateObject(); jaddstr(retjson,"base",base); jaddstr(retjson,"rel",rel); + jaddstr(retjson,"address",utxo->coinaddr); jaddnum(retjson,"timestamp",time(NULL)); jaddnum(retjson,"price",price); jaddbits256(retjson,"txid",txid); @@ -131,9 +132,7 @@ void LP_command(struct LP_peerinfo *mypeer,int32_t pubsock,cJSON *argjson,uint8_ } else { - if ( pairstr != 0 ) - printf("printf error nn_connect to %s\n",pairstr); - else printf("(%s) missing pair\n",jprint(argjson,0)); + printf("printf error nn_connect to %s\n",pairstr); nn_close(utxo->pair); utxo->pair = -1; }