From 7bf1a6248ebffd09ae0229327bcd2dfda1c4c455 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 1 Mar 2013 06:43:08 +0100 Subject: [PATCH] use Decimal in listunspent --- lib/commands.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index c795fb3..be45f9d 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -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): -- 1.7.1