implement multiplier for fee levels

This commit is contained in:
Ivan Socolsky 2017-03-01 18:51:22 -03:00
parent aa35fc21bc
commit d93cd4f279
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 1 additions and 1 deletions

View File

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