diff --git a/lib/model/txproposal.js b/lib/model/txproposal.js index c3d1879..dd0b71d 100644 --- a/lib/model/txproposal.js +++ b/lib/model/txproposal.js @@ -164,10 +164,7 @@ TxProposal.prototype._buildTx = function() { t.fee(self.fee); - var totalInputs = _.sum(self.inputs, 'satoshis'); - var totalOutputs = _.sum(self.outputs, 'amount'); - - if (totalInputs - totalOutputs - self.fee > 0 && self.changeAddress) { + if (self.changeAddress) { t.change(self.changeAddress.address); }