2019-06-14 02:31:17 +02:00
|
|
|
package lncfg
|
|
|
|
|
|
|
|
import "github.com/lightningnetwork/lnd/watchtower"
|
|
|
|
|
|
|
|
// Watchtower holds the daemon specific configuration parameters for running a
|
|
|
|
// watchtower that shares resources with the daemon.
|
2022-10-20 10:48:19 +02:00
|
|
|
//
|
2022-11-18 00:01:42 +01:00
|
|
|
//nolint:lll
|
2019-06-14 02:31:17 +02:00
|
|
|
type Watchtower struct {
|
|
|
|
Active bool `long:"active" description:"If the watchtower should be active or not"`
|
|
|
|
|
|
|
|
TowerDir string `long:"towerdir" description:"Directory of the watchtower.db"`
|
|
|
|
|
|
|
|
watchtower.Conf
|
|
|
|
}
|
2023-06-15 08:37:42 +02:00
|
|
|
|
|
|
|
// DefaultWatchtowerCfg creates a Watchtower with some default values filled
|
|
|
|
// out.
|
|
|
|
func DefaultWatchtowerCfg(defaultTowerDir string) *Watchtower {
|
|
|
|
conf := watchtower.DefaultConf()
|
|
|
|
|
|
|
|
return &Watchtower{
|
|
|
|
TowerDir: defaultTowerDir,
|
|
|
|
Conf: *conf,
|
|
|
|
}
|
|
|
|
}
|