Browse Source

Test

etomic
jl777 7 years ago
parent
commit
b3fec41a14
  1. 4
      iguana/exchanges/LP_coins.c
  2. 1
      iguana/exchanges/LP_rpc.c

4
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 )
{

1
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);

Loading…
Cancel
Save