Browse Source

Merge pull request #2116 from sengaya/fix-listunspent

Fix listunspent command
283
ThomasV 8 years ago
committed by GitHub
parent
commit
f8d43858cf
  1. 2
      lib/commands.py

2
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

Loading…
Cancel
Save