1
0

fix: timestamps in transactions

This commit is contained in:
ThomasV
2012-11-04 15:38:34 +01:00
parent b20188a65d
commit efccde2e8e
4 changed files with 28 additions and 29 deletions

View File

@@ -1226,12 +1226,11 @@ class ElectrumWindow:
balance = 0
for tx in self.wallet.get_tx_history():
tx_hash = tx['tx_hash']
if tx['height']:
conf = self.wallet.verifier.get_confirmations(tx_hash)
conf = self.wallet.verifier.get_confirmations(tx_hash)
if conf:
time_str = datetime.datetime.fromtimestamp( tx['timestamp']).isoformat(' ')[:-3]
conf_icon = gtk.STOCK_APPLY
else:
conf = 0
time_str = 'pending'
conf_icon = gtk.STOCK_EXECUTE
v = self.wallet.get_tx_value(tx_hash)
@@ -1243,7 +1242,6 @@ class ElectrumWindow:
inputs = map(lambda x: x.get('address'), tx['inputs'])
outputs = map(lambda x: x.get('address'), tx['outputs'])
# tx = self.wallet.tx_history.get(tx_hash)
details = "Transaction Details:\n\n" \
+ "Transaction ID:\n" + tx_hash + "\n\n" \
+ "Status: %d confirmations\n\n"%conf \