From d93cd4f279262f918e79d67ccef387887706f059 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 1 Mar 2017 18:51:22 -0300 Subject: [PATCH] implement multiplier for fee levels --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index 79c7a02..5590cb6 100644 --- a/lib/server.js +++ b/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;