From 849ae3c10028ee0724289fb17266e2756bae63f6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 16 Feb 2018 17:57:29 +0200 Subject: [PATCH] Skip first api return --- iguana/exchanges/LP_commands.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index e94ebcb3a..125549074 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -178,14 +178,17 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ { char pub33str[67]; G.USERPASS_COUNTER = 1; - retjson = cJSON_CreateObject(); - jaddstr(retjson,"userpass",G.USERPASS); - jaddbits256(retjson,"mypubkey",G.LP_mypub25519); - init_hexbytes_noT(pub33str,G.LP_pubsecp,33); - jaddstr(retjson,"pubsecp",pub33str); - jadd(retjson,"coins",LP_coinsjson(LP_showwif)); - LP_cmdcount++; - return(jprint(retjson,1)); + if ( 0 ) + { + retjson = cJSON_CreateObject(); + jaddstr(retjson,"userpass",G.USERPASS); + jaddbits256(retjson,"mypubkey",G.LP_mypub25519); + init_hexbytes_noT(pub33str,G.LP_pubsecp,33); + jaddstr(retjson,"pubsecp",pub33str); + jadd(retjson,"coins",LP_coinsjson(LP_showwif)); + LP_cmdcount++; + return(jprint(retjson,1)); + } } // if passphrase api and passphrase is right, ignore userpass, use hass of passphrase if ( strcmp(method,"passphrase") == 0 && (passphrase= jstr(argjson,"passphrase")) != 0 )