From d6be2a4ae2bf649bf8bc9d3fa9924180c1c5364b Mon Sep 17 00:00:00 2001 From: Thilo Uttendorfer Date: Sat, 14 Jan 2017 23:39:58 +0100 Subject: [PATCH] Fix listunspent command --- lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index 247c39a83..7eddbd699 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -166,7 +166,7 @@ class Commands: def listunspent(self): """List unspent outputs. Returns the list of unspent transaction outputs in your wallet.""" - l = copy.deepcopy(self.wallet.get_spendable_coins(exclude_frozen = False)) + l = copy.deepcopy(self.wallet.get_utxos(exclude_frozen=False)) for i in l: v = i["value"] i["value"] = float(v)/COIN if v is not None else None