Browse Source
implement multiplier for fee levels
feat/estimateFee-limit
Ivan Socolsky
8 years ago
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|