From 8735b3939bad77226c27340b3d6b4f69246982fe Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 25 Jan 2018 11:48:12 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 4 ++-- iguana/exchanges/LP_peers.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 0d1eb9972..94186c659 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -183,6 +183,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ 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 @@ -198,8 +199,7 @@ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ return(clonestr("{\"error\":\"authentication error you need to make sure userpass is set\"}")); if ( jobj(argjson,"userpass") != 0 ) jdelete(argjson,"userpass"); - if ( LP_cmdcount++ == 0 ) - printf("got first rpc command\n"); + LP_cmdcount++; if ( strcmp(method,"passphrase") == 0 ) { char coinaddr[64],pub33str[67]; diff --git a/iguana/exchanges/LP_peers.c b/iguana/exchanges/LP_peers.c index 3c6a4fb32..81674b0de 100644 --- a/iguana/exchanges/LP_peers.c +++ b/iguana/exchanges/LP_peers.c @@ -32,7 +32,7 @@ cJSON *LP_peerjson(struct LP_peerinfo *peer) { cJSON *item = cJSON_CreateObject(); jaddstr(item,"isLP",peer->ipaddr); - jaddnum(item,"port",peer->port); + jaddnum(item,"remoteport",peer->port-1); jaddnum(item,"netid",peer->netid); if ( strcmp(peer->ipaddr,LP_myipaddr) == 0 ) {