mtx: fix subtractFee.
This commit is contained in:
parent
45d424470d
commit
62f687917f
@ -1004,7 +1004,7 @@ MTX.prototype.selectCoins = function selectCoins(coins, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function total() {
|
function total() {
|
||||||
if (options.subtractFee != null)
|
if (options.subtractFee || options.subtractFee === 0)
|
||||||
return outputValue;
|
return outputValue;
|
||||||
return outputValue + fee;
|
return outputValue + fee;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user