git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
526361a
)
createrawtransaction: keep all fields for input_info
author
ThomasV
<thomasv@gitorious>
Wed, 21 May 2014 10:37:00 +0000 (12:37 +0200)
committer
ThomasV
<thomasv@gitorious>
Wed, 21 May 2014 10:37:00 +0000 (12:37 +0200)
lib/commands.py
patch
|
blob
|
history
diff --git
a/lib/commands.py
b/lib/commands.py
index
c0a38ff
..
2e42853
100644
(file)
--- a/
lib/commands.py
+++ b/
lib/commands.py
@@
-162,7
+162,9
@@
class Commands:
def createrawtransaction(self, inputs, outputs):
- inputs = map(lambda i: {'prevout_hash': i['txid'], 'prevout_n':i['vout']}, inputs )
+ for i in inputs:
+ i['prevout_hash'] = i['txid']
+ i['prevout_n'] = i['vout']
outputs = map(lambda x: (x[0],int(1e8*x[1])), outputs.items())
tx = Transaction.from_io(inputs, outputs)
return tx