lnwallet: add configurable cache for web fee estimator

Add fee.min-update-timeout and fee.max-update-timeout config options to
allow configuration of the web fee estimator cache.
This commit is contained in:
Tom Kirkpatrick authored and yyforyongyu committed 2024-05-04 14:41:41 +08:00
1 parent fa616ee059
commit 3837c3f12e
15 files changed
+202 -55

No files matched your search

@@ -209,6 +209,17 @@
its bitcoin peers' `feefilter` values into
account](https://github.com/lightningnetwork/lnd/pull/8418).
* Web fee estimator settings have been moved into a new `fee` config group.
A new `fee.url` option has been added within this group that replaces the old
`feeurl` option, which is now deprecated. Additionally, [two new config values,
fee.min-update-timeout and fee.max-update-timeout](https://github.com/lightningnetwork/lnd/pull/8484)
are added to allow users to specify the minimum and maximum time between fee
updates from the web fee estimator. The default values are 5 minutes and 20
minutes respectively. These values are used to prevent the fee estimator from
being queried too frequently. This replaces previously hardcoded values that
were set to the same values as the new defaults. The previously deprecated
`neutrino.feeurl` option has been removed.
* [Preparatory work](https://github.com/lightningnetwork/lnd/pull/8159) for
forwarding of blinded routes was added, along with [support](https://github.com/lightningnetwork/lnd/pull/8160)
for forwarding blinded payments and [error handling](https://github.com/lightningnetwork/lnd/pull/8485).