electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 2cb5b14b9b9c57b08e020ff01b705df2e9e1237e
parent 9afe0d8aaf19776d6f28576f217af7dd9c44f349
Author: thomasv <thomasv@gitorious>
Date:   Wed, 27 Feb 2013 09:09:58 +0100

deep copy output to prevent side-effect

Diffstat:
Mlib/commands.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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