tuse Decimal in listunspent - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7bf1a6248ebffd09ae0229327bcd2dfda1c4c455 DIR parent 3eb746db5c851a523aca1a9b00007e6d924b23d6 HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 1 Mar 2013 06:43:08 +0100 use Decimal in listunspent Diffstat: M lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -123,7 +123,7 @@ class Commands: def listunspent(self): import copy l = copy.deepcopy(self.wallet.get_unspent_coins()) - for i in l: i["value"] = i["value"]*1e-8 + for i in l: i["value"] = str(Decimal(i["value"])/100000000) return l def createrawtransaction(self, inputs, outputs):