fix get_tx_details

This commit is contained in:
thomasv 2013-02-23 12:11:32 +01:00
parent 9cfb73365b
commit 780c5d01d5
1 changed files with 3 additions and 3 deletions

View File

@ -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