|
|
@ -36,7 +36,10 @@ TxProposal.create = function(opts) { |
|
|
|
x.outputs = _.map(opts.outputs, function(output) { |
|
|
|
return _.pick(output, ['amount', 'toAddress', 'message', 'script']); |
|
|
|
}); |
|
|
|
x.outputOrder = _.shuffle(_.range(x.outputs.length + 1)); |
|
|
|
x.outputOrder = _.range(x.outputs.length + 1); |
|
|
|
if (!opts.noShuffleOutputs) { |
|
|
|
x.outputOrder = _.shuffle(x.outputOrder); |
|
|
|
} |
|
|
|
x.walletM = opts.walletM; |
|
|
|
x.walletN = opts.walletN; |
|
|
|
x.requiredSignatures = x.walletM; |
|
|
|