From 7844891d1e22c1677b9cdb6e4010f554ed160cb9 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Fri, 15 Jun 2018 14:44:23 +0700 Subject: [PATCH] #75 Do not call ETH/ERC20 balance for disabled coins. --- iguana/exchanges/LP_utxo.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index eb4b37131..4e9928aa2 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -787,7 +787,14 @@ cJSON *LP_balances(char *coinaddr) } else { - if ( (balance= LP_RTsmartbalance(coin)) != 0 ) +#ifndef NOTETOMIC + if (coin->etomic[0] == 0 || coin->inactive == 0) { +#endif + balance = LP_RTsmartbalance(coin); +#ifndef NOTETOMIC + } +#endif + if ( balance != 0 ) { item = cJSON_CreateObject(); jaddstr(item,"coin",coin->symbol);