Browse Source

remove redundant check for very small utxos

activeAddress
Ivan Socolsky 9 years ago
parent
commit
49791bcfdf
  1. 5
      lib/server.js

5
lib/server.js

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

Loading…
Cancel
Save