2019-06-07 17:46:31 -07:00
|
|
|
package wtclientrpc
|
|
|
|
|
|
|
|
import (
|
2024-10-15 15:28:46 +02:00
|
|
|
"github.com/btcsuite/btclog/v2"
|
2019-06-07 17:46:31 -07:00
|
|
|
"github.com/lightningnetwork/lnd/lncfg"
|
|
|
|
"github.com/lightningnetwork/lnd/watchtower/wtclient"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Config is the primary configuration struct for the watchtower RPC server. It
|
|
|
|
// contains all the items required for the RPC server to carry out its duties.
|
|
|
|
// The fields with struct tags are meant to be parsed as normal configuration
|
|
|
|
// options, while if able to be populated, the latter fields MUST also be
|
|
|
|
// specified.
|
|
|
|
type Config struct {
|
|
|
|
// Active indicates if the watchtower client is enabled.
|
|
|
|
Active bool
|
|
|
|
|
2023-05-16 13:28:11 +02:00
|
|
|
// ClientMgr is a tower client manager that manages a set of tower
|
|
|
|
// clients.
|
2023-08-11 14:53:54 +02:00
|
|
|
ClientMgr wtclient.ClientManager
|
2023-05-16 13:28:11 +02:00
|
|
|
|
2019-06-07 17:46:31 -07:00
|
|
|
// Resolver is a custom resolver that will be used to resolve watchtower
|
|
|
|
// addresses to ensure we don't leak any information when running over
|
|
|
|
// non-clear networks, e.g. Tor, etc.
|
|
|
|
Resolver lncfg.TCPResolver
|
2020-05-11 16:05:04 -07:00
|
|
|
|
|
|
|
// Log is the logger instance we should log output to.
|
|
|
|
Log btclog.Logger
|
2019-06-07 17:46:31 -07:00
|
|
|
}
|