Use spot rate for unconfirmed TXs
This commit is contained in:
parent
58bd655f1d
commit
22788e9ab0
@ -444,9 +444,10 @@ class Plugin(BasePlugin, ThreadJob):
|
|||||||
if not self.show_history():
|
if not self.show_history():
|
||||||
return
|
return
|
||||||
tx_hash, conf, value, timestamp, balance = tx
|
tx_hash, conf, value, timestamp, balance = tx
|
||||||
date = timestamp_to_datetime(timestamp)
|
if conf <= 0:
|
||||||
if not date:
|
date = datetime.today()
|
||||||
date = timestamp_to_datetime(0)
|
else
|
||||||
|
date = timestamp_to_datetime(timestamp)
|
||||||
for amount in [value, balance]:
|
for amount in [value, balance]:
|
||||||
text = self.historical_value_str(amount, date)
|
text = self.historical_value_str(amount, date)
|
||||||
entry.append(text)
|
entry.append(text)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user