mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 02:21:08 +02:00
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:
committed by
yyforyongyu
parent
fa616ee059
commit
3837c3f12e
@ -550,6 +550,11 @@ func (d *DefaultWalletImpl) BuildWalletConfig(ctx context.Context,
|
||||
NeutrinoCS: neutrinoCS,
|
||||
ActiveNetParams: d.cfg.ActiveNetParams,
|
||||
FeeURL: d.cfg.FeeURL,
|
||||
Fee: &lncfg.Fee{
|
||||
URL: d.cfg.Fee.URL,
|
||||
MinUpdateTimeout: d.cfg.Fee.MinUpdateTimeout,
|
||||
MaxUpdateTimeout: d.cfg.Fee.MaxUpdateTimeout,
|
||||
},
|
||||
Dialer: func(addr string) (net.Conn, error) {
|
||||
return d.cfg.net.Dial(
|
||||
"tcp", addr, d.cfg.ConnectionTimeout,
|
||||
|
Reference in New Issue
Block a user