Browse Source

wallet: add FIXME re fiat coin_price calculation

3.3.3.1
SomberNight 6 years ago
parent
commit
99325618a6
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/wallet.py

3
electrum/wallet.py

@ -1185,6 +1185,9 @@ class Abstract_Wallet(AddressSynchronizer):
""" """
if txin_value is None: if txin_value is None:
return Decimal('NaN') return Decimal('NaN')
# FIXME: this mutual recursion will be really slow and might even reach
# max recursion depth if there are no FX rates available as then
# nothing will be cached.
cache_key = "{}:{}:{}".format(str(txid), str(ccy), str(txin_value)) cache_key = "{}:{}:{}".format(str(txid), str(ccy), str(txin_value))
result = self.coin_price_cache.get(cache_key, None) result = self.coin_price_cache.get(cache_key, None)
if result is not None: if result is not None:

Loading…
Cancel
Save