tfix side effect in get_unspent_coins, causing transactions to be rejected - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 9db6f0c3b7c1c213e41a167f5d09206270df4c0b
DIR parent 8d943ff9a2b0b9fe67a4333cfe378457af81c6d0
HTML Author: ThomasV <thomasv@gitorious>
Date: Mon, 11 Nov 2013 10:35:28 +0100
fix side effect in get_unspent_coins, causing transactions to be rejected
Diffstat:
M lib/wallet.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -1114,7 +1114,8 @@ class Wallet:
tx = self.transactions.get(tx_hash)
if tx is None: raise Exception("Wallet not synchronized")
is_coinbase = tx.inputs[0].get('prevout_hash') == '0'*64
- for output in tx.d.get('outputs'):
+ for o in tx.d.get('outputs'):
+ output = o.copy()
if output.get('address') != addr: continue
key = tx_hash + ":%d" % output.get('prevout_n')
if key in self.spent_outputs: continue