commit 8329faf760ebafa6d13fa18f43690dd15bb773ed
parent 151aa9d13596ab714cb1ddf712e171faa67fb2a7
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 23 Feb 2018 09:11:25 +0100
price_at_timestamp: minor fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -1704,7 +1704,7 @@ class Abstract_Wallet(PrintError):
def price_at_timestamp(self, txid, price_func):
height, conf, timestamp = self.get_tx_height(txid)
- return price_func(timestamp)
+ return price_func(timestamp if timestamp else time.time())
def unrealized_gains(self, domain, price_func, ccy):
coins = self.get_utxos(domain)