fix: remove unnecessary config load and fee calculation

This commit is contained in:
José Oliveira 2021-10-28 21:12:52 +01:00
parent 8c948d08c7
commit c200b0824a
2 changed files with 3 additions and 6 deletions

View file

@ -60,7 +60,7 @@ function estimateFee () {
function calculateFeeDiscount (feeMultiplier) {
// 0 makes bitcoind do automatic fee selection
const AUTOMATIC_FEE = 0
if (!feeMultiplier) return AUTOMATIC_FEE
if (!feeMultiplier || feeMultiplier.eq(1)) return AUTOMATIC_FEE
return estimateFee()
.then(estimatedFee => {
if (!estimatedFee) return AUTOMATIC_FEE