implement multiplier for fee levels
This commit is contained in:
parent
aa35fc21bc
commit
d93cd4f279
|
@ -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…
Reference in New Issue