Skip to content

Commit

Permalink
Only use minfee if set
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Feb 13, 2024
1 parent 1fb0a57 commit d6bb828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ function calculateFees(mempoolFeeEstimates: MempoolFeeEstimates, esploraFeeEstim

// Get the minimum fee. If the mempool fee estimates are not available, use a default value of FEE_MINIMUM sat/vbyte as a safety net.
const minFee = (mempoolFeeEstimates?.minimumFee ?? FEE_MINIMUM) * 1000;
logger.debug({ message: 'Using minimum fee: {minFee}', minFee });

if (minFee) {
logger.info({ message: 'Using minimum fee: {minFee}', minFee });

// Filter the estimates to remove any that are lower than the desired minimum fee.
feeByBlockTarget = filterEstimates(feeByBlockTarget, minFee);

Expand Down

0 comments on commit d6bb828

Please sign in to comment.