tcreaterawtransaction: keep all fields for input_info - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 217ba7c80cf98afe0f30b41ce73c240a10a4a54b DIR parent 526361a34e765a8c09be58a2b3b4d5e8f0c508ff HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 21 May 2014 12:37:00 +0200 createrawtransaction: keep all fields for input_info Diffstat: M lib/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -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