rpc: createrawtransaction from inputs

This commit is contained in:
Node 2017-08-18 11:01:43 +04:00
parent f9eca70374
commit 4fb2df7789
No known key found for this signature in database
GPG Key ID: 8E1B4DC29040BD90

View File

@ -1644,7 +1644,7 @@ RPC.prototype.createRawTransaction = async function createRawTransaction(args, h
if (locktime != null)
tx.locktime = locktime;
for (const obj of tx.inputs) {
for (const obj of inputs) {
const valid = new Validator([obj]);
const hash = valid.hash('txid');
const index = valid.u32('vout');