URI: 
       tUse spot rate for unconfirmed TXs - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 22788e9ab0769a148aac608553fb99d1aea7662d
   DIR parent 58bd655f1d372a6d76f468595bc41b75e8fe1084
  HTML Author: Neil Booth <kyuupichan@gmail.com>
       Date:   Sat, 12 Sep 2015 19:18:49 +0900
       
       Use spot rate for unconfirmed TXs
       
       Diffstat:
         M plugins/exchange_rate.py            |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py
       t@@ -444,9 +444,10 @@ class Plugin(BasePlugin, ThreadJob):
                if not self.show_history():
                    return
                tx_hash, conf, value, timestamp, balance = tx
       -        date = timestamp_to_datetime(timestamp)
       -        if not date:
       -            date = timestamp_to_datetime(0)
       +        if conf <= 0:
       +            date = datetime.today()
       +        else
       +            date = timestamp_to_datetime(timestamp)
                for amount in [value, balance]:
                    text = self.historical_value_str(amount, date)
                    entry.append(text)