ui: Skip cached info if coin was disabled

This commit is contained in:
tecnovert 2021-11-09 17:26:26 +02:00
parent ad1de44dca
commit b8ea028d04
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -5021,6 +5021,11 @@ class BasicSwap(BaseApp):
q = session.execute(query_str) q = session.execute(query_str)
for row in q: for row in q:
coin_id = row[0] coin_id = row[0]
if self.coin_clients[coin_id]['connection_type'] != 'rpc':
# Skip cached info if coin was disabled
continue
wallet_data = json.loads(row[1]) wallet_data = json.loads(row[1])
wallet_data['lastupdated'] = row[2] wallet_data['lastupdated'] = row[2]
wallet_data['updating'] = self._updating_wallets_info.get(coin_id, False) wallet_data['updating'] = self._updating_wallets_info.get(coin_id, False)