Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Feb 13, 2024
1 parent d6bb828 commit 9cd1752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,15 @@ function calculateFees(mempoolFeeEstimates: MempoolFeeEstimates, esploraFeeEstim

// Filter the estimates to remove any that are lower than the desired minimum fee.
feeByBlockTarget = filterEstimates(feeByBlockTarget, minFee);
logger.debug({ message: '{feeByBlockTarget}1', feeByBlockTarget });

// If we didn't manage to get any fee estimates, return a single estimate with the minimum fee.
if (Object.keys(feeByBlockTarget).length === 0) {
feeByBlockTarget = { 1: minFee }
logger.debug({ message: '{feeByBlockTarget}2', feeByBlockTarget });
}
}

logger.debug({ message: '{feeByBlockTarget}3', feeByBlockTarget });
return feeByBlockTarget;
}

Expand Down

0 comments on commit 9cd1752

Please sign in to comment.