From 9cfb73365b5a9f5eaab303296f531c41a62a0b1e Mon Sep 17 00:00:00 2001 From: thomasv Date: Sat, 23 Feb 2013 12:07:46 +0100 Subject: [PATCH] fix: use deserialized tx outputs in choose_tx_inputs --- lib/wallet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index 31138960..b618d549 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -484,7 +484,7 @@ class Wallet: if h == ['*']: continue for tx_hash, tx_height in h: tx = self.transactions.get(tx_hash) - for output in tx.get('outputs'): + for output in tx.d.get('outputs'): if output.get('address') != addr: continue key = tx_hash + ":%d" % output.get('index') if key in self.spent_outputs: continue @@ -497,7 +497,7 @@ class Wallet: if h == ['*']: continue for tx_hash, tx_height in h: tx = self.transactions.get(tx_hash) - for output in tx.get('outputs'): + for output in tx.d.get('outputs'): if output.get('address') != addr: continue key = tx_hash + ":%d" % output.get('index') if key in self.spent_outputs: continue