|
@ -1342,11 +1342,6 @@ WalletService.prototype._selectTxInputs = function(txp, utxosToExclude, cb) { |
|
|
_.each(smallInputs, function(input, i) { |
|
|
_.each(smallInputs, function(input, i) { |
|
|
log.debug('Input #' + i + ': ' + Utils.formatUtxos(input)); |
|
|
log.debug('Input #' + i + ': ' + Utils.formatUtxos(input)); |
|
|
|
|
|
|
|
|
if (input.satoshis < feePerInput) { |
|
|
|
|
|
log.debug('The input does not cover the extra fees (' + Utils.formatAmountInBtc(feePerInput) + ')'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var netInputAmount = input.satoshis - feePerInput; |
|
|
var netInputAmount = input.satoshis - feePerInput; |
|
|
|
|
|
|
|
|
log.debug('The input contributes ' + Utils.formatAmountInBtc(netInputAmount)); |
|
|
log.debug('The input contributes ' + Utils.formatAmountInBtc(netInputAmount)); |
|
|