|
|
@ -194,9 +194,12 @@ TxProposal.prototype._buildTx = function() { |
|
|
|
|
|
|
|
// Shuffle outputs for improved privacy
|
|
|
|
if (t.outputs.length > 1) { |
|
|
|
$.checkState(t.outputs.length == self.outputOrder.length); |
|
|
|
var outputOrder = _.reject(self.outputOrder, function(order) { |
|
|
|
return order >= t.outputs.length; |
|
|
|
}); |
|
|
|
$.checkState(t.outputs.length == outputOrder.length); |
|
|
|
t.sortOutputs(function(outputs) { |
|
|
|
return _.map(self.outputOrder, function(i) { |
|
|
|
return _.map(outputOrder, function(i) { |
|
|
|
return outputs[i]; |
|
|
|
}); |
|
|
|
}); |
|
|
|