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

+11
View File
@@ -13,3 +13,14 @@ type Watchtower struct {
watchtower.Conf
}
// DefaultWatchtowerCfg creates a Watchtower with some default values filled
// out.
func DefaultWatchtowerCfg(defaultTowerDir string) *Watchtower {
conf := watchtower.DefaultConf()
return &Watchtower{
TowerDir: defaultTowerDir,
Conf: *conf,
}
}