Browse Source

fix get_tx_details

283
thomasv 12 years ago
parent
commit
780c5d01d5
  1. 6
      lib/wallet.py

6
lib/wallet.py

@ -358,7 +358,7 @@ class Wallet:
import datetime import datetime
if not tx_hash: return '' if not tx_hash: return ''
tx = self.transactions.get(tx_hash) tx = self.transactions.get(tx_hash)
is_mine, v, fee = self.get_tx_value(tx_hash) is_mine, v, fee = self.get_tx_value(tx)
conf, timestamp = self.verifier.get_confirmations(tx_hash) conf, timestamp = self.verifier.get_confirmations(tx_hash)
if timestamp: if timestamp:
@ -366,8 +366,8 @@ class Wallet:
else: else:
time_str = 'pending' time_str = 'pending'
inputs = map(lambda x: x.get('address'), tx['inputs']) inputs = map(lambda x: x.get('address'), tx.inputs)
outputs = map(lambda x: x.get('address'), tx['outputs']) outputs = map(lambda x: x.get('address'), tx.d['outputs'])
tx_details = "Transaction Details" +"\n\n" \ tx_details = "Transaction Details" +"\n\n" \
+ "Transaction ID:\n" + tx_hash + "\n\n" \ + "Transaction ID:\n" + tx_hash + "\n\n" \
+ "Status: %d confirmations\n"%conf + "Status: %d confirmations\n"%conf

Loading…
Cancel
Save