Skip to content

Commit

Permalink
createrawtransaction: keep all fields for input_info
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasV committed May 21, 2014
1 parent 526361a commit 217ba7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def getutxoaddress(self, txid, num):


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
Expand Down

0 comments on commit 217ba7c

Please sign in to comment.