git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
89958cc
)
convert satoshis to btc in listunspent
author
thomasv
<thomasv@gitorious>
Tue, 26 Feb 2013 14:30:37 +0000 (15:30 +0100)
committer
thomasv
<thomasv@gitorious>
Tue, 26 Feb 2013 14:30:37 +0000 (15:30 +0100)
lib/commands.py
patch
|
blob
|
history
diff --git
a/lib/commands.py
b/lib/commands.py
index
a2fc7eb
..
b5b1a58
100644
(file)
--- a/
lib/commands.py
+++ b/
lib/commands.py
@@
-43,7
+43,9
@@
class Commands:
print_json(h)
def listunspent(self):
- print_json(self.wallet.get_unspent_coins())
+ l = self.wallet.get_unspent_coins()
+ for i in l: i["value"] = i["value"]*1e-8
+ print_json(l)
def createrawtransaction(self, inputs, outputs):
# convert to own format