diff --git a/iguana/exchanges/LP_coins.c b/iguana/exchanges/LP_coins.c index f1bcef3de..7b0d71693 100644 --- a/iguana/exchanges/LP_coins.c +++ b/iguana/exchanges/LP_coins.c @@ -196,7 +196,9 @@ cJSON *LP_coinjson(struct iguana_info *coin,int32_t showwif) else jaddstr(item,"wif","error creating wif"); } jadd(item,"installed",coin->userpass[0] == 0 ? jfalse() : jtrue()); - jaddnum(item,"height",LP_getheight(coin)); + if ( coin->userpass[0] != 0 ) + jaddnum(item,"height",LP_getheight(coin)); + else jaddnum(item,"height",-1); if ( coin->inactive != 0 ) { diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 7620591c7..5d96b956b 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -212,7 +212,6 @@ int32_t LP_getheight(struct iguana_info *coin) if ( strcmp(coin->symbol,"BTC") == 0 ) method = "getblockchaininfo"; retstr = bitcoind_passthru(coin->symbol,coin->serverport,coin->userpass,method,"[]"); - printf("%s.(%s %s): %s.%s -> (%s)\n",coin->symbol,coin->serverport,coin->userpass,method,"[]",retstr); if ( retstr != 0 && retstr[0] != 0 ) { retjson = cJSON_Parse(retstr);