Browse Source

Test

etomic
jl777 7 years ago
parent
commit
a2f6819adf
  1. 4
      iguana/exchanges/LP_utxo.c

4
iguana/exchanges/LP_utxo.c

@ -622,7 +622,7 @@ cJSON *LP_balances(char *coinaddr)
array = cJSON_CreateArray();
HASH_ITER(hh,LP_coins,coin,tmp)
{
if ( coinaddr != 0 && strcmp(coinaddr,coin->smartaddr) == 0 )
if ( (coinaddr == 0 || coinaddr[0] == 0) && strcmp(coinaddr,coin->smartaddr) == 0 )
{
if ( (balance= LP_RTsmartbalance(coin)) != 0 )
{
@ -637,7 +637,7 @@ cJSON *LP_balances(char *coinaddr)
jaddi(array,item);
}
}
else
else if ( coinaddr != 0 && coinaddr[0] != 0 )
{
if ( (retjson= LP_address_balance(coin,coinaddr,1)) != 0 )
{

Loading…
Cancel
Save