fix: android HistoryScreen was not displaying fiat value of unconfirmed txns
This commit is contained in:
@@ -1790,6 +1790,7 @@ class Abstract_Wallet(PrintError):
|
||||
return None
|
||||
|
||||
def price_at_timestamp(self, txid, price_func):
|
||||
"""Returns fiat price of bitcoin at the time tx got confirmed."""
|
||||
height, conf, timestamp = self.get_tx_height(txid)
|
||||
return price_func(timestamp if timestamp else time.time())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user