|
@ -382,8 +382,7 @@ function createTX(outputs) { |
|
|
|
|
|
|
|
|
var b = new bitcore.TransactionBuilder(opts) |
|
|
var b = new bitcore.TransactionBuilder(opts) |
|
|
.setUnspent(unspent) |
|
|
.setUnspent(unspent) |
|
|
.setOutputs(outs) |
|
|
.setOutputs(outs); |
|
|
.sign(keys); |
|
|
|
|
|
|
|
|
|
|
|
outputs.forEach(function(output, i) { |
|
|
outputs.forEach(function(output, i) { |
|
|
var script = { |
|
|
var script = { |
|
@ -396,6 +395,8 @@ function createTX(outputs) { |
|
|
b.tx.outs[i].s = s; |
|
|
b.tx.outs[i].s = s; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
b = b.sign(keys); |
|
|
|
|
|
|
|
|
var tx = b.build(); |
|
|
var tx = b.build(); |
|
|
|
|
|
|
|
|
print(''); |
|
|
print(''); |
|
|