git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8d943ff
)
fix side effect in get_unspent_coins, causing transactions to be rejected
author
ThomasV
<thomasv@gitorious>
Mon, 11 Nov 2013 09:35:28 +0000 (10:35 +0100)
committer
ThomasV
<thomasv@gitorious>
Mon, 11 Nov 2013 09:35:28 +0000 (10:35 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
8aa39f9
..
f86b020
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-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