always add changeaddress if specified
This commit is contained in:
parent
c1347871f0
commit
f455b53971
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue