Skip to content

Commit

Permalink
Fix listunspent command
Browse files Browse the repository at this point in the history
  • Loading branch information
sengaya committed Jan 14, 2017
1 parent d075569 commit d6be2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands.py
Expand Up @@ -166,7 +166,7 @@ def getaddresshistory(self, address):
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
Expand Down

0 comments on commit d6be2a4

Please sign in to comment.