Browse Source

Use spot rate for unconfirmed TXs

283
Neil Booth 9 years ago
parent
commit
22788e9ab0
  1. 5
      plugins/exchange_rate.py

5
plugins/exchange_rate.py

@ -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
if conf <= 0:
date = datetime.today()
else
date = timestamp_to_datetime(timestamp) date = timestamp_to_datetime(timestamp)
if not date:
date = timestamp_to_datetime(0)
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…
Cancel
Save