|
@ -606,22 +606,22 @@ class ElectrumWindow(QMainWindow): |
|
|
self.history_list.clear() |
|
|
self.history_list.clear() |
|
|
for item in self.wallet.get_tx_history(self.current_account): |
|
|
for item in self.wallet.get_tx_history(self.current_account): |
|
|
tx_hash, conf, is_mine, value, fee, balance, timestamp = item |
|
|
tx_hash, conf, is_mine, value, fee, balance, timestamp = item |
|
|
if conf: |
|
|
if conf > 0: |
|
|
try: |
|
|
try: |
|
|
time_str = datetime.datetime.fromtimestamp( timestamp).isoformat(' ')[:-3] |
|
|
time_str = datetime.datetime.fromtimestamp( timestamp).isoformat(' ')[:-3] |
|
|
except: |
|
|
except: |
|
|
time_str = "unknown" |
|
|
time_str = "unknown" |
|
|
if conf == -1: |
|
|
|
|
|
icon = None |
|
|
if conf == -1: |
|
|
if conf == 0: |
|
|
time_str = 'unverified' |
|
|
icon = QIcon(":icons/unconfirmed.png") |
|
|
icon = None |
|
|
elif conf < 6: |
|
|
elif conf == 0: |
|
|
icon = QIcon(":icons/clock%d.png"%conf) |
|
|
|
|
|
else: |
|
|
|
|
|
icon = QIcon(":icons/confirmed.png") |
|
|
|
|
|
else: |
|
|
|
|
|
time_str = 'pending' |
|
|
time_str = 'pending' |
|
|
icon = QIcon(":icons/unconfirmed.png") |
|
|
icon = QIcon(":icons/unconfirmed.png") |
|
|
|
|
|
elif conf < 6: |
|
|
|
|
|
icon = QIcon(":icons/clock%d.png"%conf) |
|
|
|
|
|
else: |
|
|
|
|
|
icon = QIcon(":icons/confirmed.png") |
|
|
|
|
|
|
|
|
if value is not None: |
|
|
if value is not None: |
|
|
v_str = self.format_amount(value, True) |
|
|
v_str = self.format_amount(value, True) |
|
|