mtx: fix subtractFee.

This commit is contained in:
Christopher Jeffrey 2016-08-08 14:54:56 -07:00
parent 45d424470d
commit 62f687917f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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;
} }