multi: add default watchtower config to main LND config

In this commit, a `DefaultWatchtowerCfg` function is added which is used
to construct a default `lncfg.Watchtower` struct. This is then used to
populate the default watchtower config in the main LND config struct.
This commit is contained in:
Elle Mouton committed 2023-06-15 11:36:44 +02:00
1 parent d9c4ada991
commit f3525e8b7c
3 files changed
+20 -3

No files matched your search

+1 -3
View File
@@ -638,9 +638,7 @@ func DefaultConfig() Config {
ChannelCacheSize: channeldb.DefaultChannelCacheSize,
},
Prometheus: lncfg.DefaultPrometheus(),
Watchtower: &lncfg.Watchtower{
TowerDir: defaultTowerDir,
},
Watchtower: lncfg.DefaultWatchtowerCfg(defaultTowerDir),
HealthChecks: &lncfg.HealthCheckConfig{
ChainCheck: &lncfg.CheckConfig{
Interval: defaultChainInterval,