git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
9afe0d8
)
deep copy output to prevent side-effect
author
thomasv
<thomasv@gitorious>
Wed, 27 Feb 2013 08:09:58 +0000 (09:09 +0100)
committer
thomasv
<thomasv@gitorious>
Wed, 27 Feb 2013 08:09:58 +0000 (09:09 +0100)
lib/commands.py
patch
|
blob
|
history
diff --git
a/lib/commands.py
b/lib/commands.py
index
ec587f4
..
ebb36c3
100644
(file)
--- a/
lib/commands.py
+++ b/
lib/commands.py
@@
-121,7
+121,8
@@
class Commands:
return h
def listunspent(self):
- l = self.wallet.get_unspent_coins()
+ import copy
+ l = copy.deepcopy(self.wallet.get_unspent_coins())
for i in l: i["value"] = i["value"]*1e-8
return l