Browse Source

implement multiplier for fee levels

feat/estimateFee-limit
Ivan Socolsky 8 years ago
parent
commit
d93cd4f279
No known key found for this signature in database GPG Key ID: FAECE6A05FAA4F56
  1. 2
      lib/server.js

2
lib/server.js

@ -1433,7 +1433,7 @@ WalletService.prototype.getFeeLevels = function(opts, cb) {
result.nbBlocks = null;
} else {
var feeLevel = getFeeLevel(feeSamples, level, level.nbBlocks, Defaults.FEE_LEVELS_FALLBACK);
result.feePerKb = feeLevel.feePerKb;
result.feePerKb = +(feeLevel.feePerKb * (level.multiplier || 1)).toFixed(0);
result.nbBlocks = feeLevel.nbBlocks;
}
return result;

Loading…
Cancel
Save