mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
createrawtransaction: keep all fields for input_info
This commit is contained in:
parent
526361a34e
commit
217ba7c80c
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,9 @@ class Commands:
|
||||||
|
|
||||||
|
|
||||||
def createrawtransaction(self, inputs, outputs):
|
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())
|
outputs = map(lambda x: (x[0],int(1e8*x[1])), outputs.items())
|
||||||
tx = Transaction.from_io(inputs, outputs)
|
tx = Transaction.from_io(inputs, outputs)
|
||||||
return tx
|
return tx
|
||||||
|
|
Loading…
Add table
Reference in a new issue