mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
wallet: don't cache NaN coin price
if NaN coin price is cached, historial acquisition prices are not shown correctly since the historial prices are requested after the full history is initially shown. As such, "No data" will be shown, even though the user required using historical pricing.
This commit is contained in:
parent
0da1e904fe
commit
73e367dc3b
1 changed files with 2 additions and 1 deletions
|
@ -1129,6 +1129,7 @@ class Abstract_Wallet(AddressSynchronizer):
|
|||
return result
|
||||
if self.txi.get(txid, {}) != {}:
|
||||
result = self.average_price(txid, price_func, ccy) * txin_value/Decimal(COIN)
|
||||
if not result.is_nan():
|
||||
self.coin_price_cache[cache_key] = result
|
||||
return result
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue