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:
3 files changed
+20
-3
No files matched your search
@@ -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,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user