From 4dd2fd1b02c8bfb718dd8d82eb4e8fb91d40aaa8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 7 Jul 2017 19:16:39 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 24d785cf5..2492ba102 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -249,7 +249,7 @@ trust(pubkey, trust)\n\ jaddstr(reqjson,"method",method); //jdelete(reqjson,"method2"); //printf("BROADCASTED.(%s)\n",jprint(reqjson,0)); - printf("BROADCASTED METHOD.%s\n",method); + //printf("BROADCASTED METHOD.%s\n",method); } argjson = reqjson; } @@ -305,7 +305,7 @@ trust(pubkey, trust)\n\ return(LP_utxos(1,LP_mypeer,jstr(argjson,"coin"),jint(argjson,"lastn"))); else if ( strcmp(method,"utxo") == 0 ) { - printf("UTXO.%s\n",method); + //printf("UTXO.%s\n",method); if ( LP_utxoaddjson(1,LP_mypubsock,argjson) != 0 ) retstr = clonestr("{\"result\":\"success\",\"utxo\":\"received\"}"); else retstr = clonestr("{\"result\":\"couldnt add utxo\"}"); @@ -373,7 +373,8 @@ trust(pubkey, trust)\n\ }*/ } } - printf("ERROR.(%s)\n",jprint(argjson,0)); + if ( retstr == 0 ) + printf("ERROR.(%s)\n",jprint(argjson,0)); if ( reqjson != 0 ) free_json(reqjson); if ( retstr != 0 )