Exemple #1
0
 def history_tab_update(self, tx, entry):
     if not self.show_history():
         return
     tx_hash, conf, value, timestamp, balance = tx
     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)
 def get_history_rate(self, btc_balance, timestamp):
     date = timestamp_to_datetime(timestamp)
     return run_hook('historical_value_str', btc_balance, date)