|
@ -128,8 +128,8 @@ function estimateFee (tx, network) { |
|
|
var fee = baseFee * Math.ceil(byteSize / 1000) |
|
|
var fee = baseFee * Math.ceil(byteSize / 1000) |
|
|
if (network.dustSoftThreshold === undefined) return fee |
|
|
if (network.dustSoftThreshold === undefined) return fee |
|
|
|
|
|
|
|
|
tx.outs.forEach(function (e) { |
|
|
tx.outs.forEach(function (output) { |
|
|
if (e.value < network.dustSoftThreshold) { |
|
|
if (output.value < network.dustSoftThreshold) { |
|
|
fee += baseFee |
|
|
fee += baseFee |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|