allow fee to be set to zero
This commit is contained in:
parent
4d4388f6bf
commit
39c181dce6
2 changed files with 10 additions and 1 deletions
src
|
@ -184,7 +184,7 @@ var Wallet = function (seed, options) {
|
|||
totalInValue += output.value
|
||||
if(totalInValue < value) continue;
|
||||
|
||||
var fee = fixedFee || estimateFeePadChangeOutput(tx)
|
||||
var fee = fixedFee == undefined ? estimateFeePadChangeOutput(tx) : fixedFee
|
||||
if(totalInValue < value + fee) continue;
|
||||
|
||||
var change = totalInValue - value - fee
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue