[feature]: Implement customizable cache control for web fee estimator #8482
Labels
enhancement
Improvements to existing features / behaviour
fees
Related to the fees paid for transactions (both LN and funding/commitment transactions)
wallet
The wallet (lnwallet) which LND uses
web fee estimator
Issues related to external fee estimator
Milestone
Problem:
LND's web fee estimator (configured by setting
feeurl
) uses a hardcoded refresh schedule (between 5-20 minutes) for fetching fee information. This can lead to inaccurate fee estimations due to rapid changes in mempool conditions, creating the potential for priority transactions to miss the next block, and various underpayment or overpayment scenarios.Desired solution:
Implement customizable cache control for the web fee estimator, allowing users to set higher refresh frequencies for more timely fee updates.
Alternatives considered:
Manually handling fee estimation outside LND: This only works for specific use cases and duplicates effort, not ideal for integrating with LND's built-in features.
Additional context:
https://strike.me/blog/blended-bitcoin-fee-estimations/ (explains how the web fee estimator can be used to incorporate mempool-based fee estimation into lnd to improve estimates for priority transactions. This could be more effective with more frequent rate refreshes from lnd).
The text was updated successfully, but these errors were encountered: