mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 06:01:48 +02:00
lnd: make MailboxDeliveryTimeout
configurable
This commit is contained in:
@@ -444,6 +444,8 @@ type Config struct {
|
||||
|
||||
Sweeper *lncfg.Sweeper `group:"sweeper" namespace:"sweeper"`
|
||||
|
||||
Htlcswitch *lncfg.Htlcswitch `group:"htlcswitch" namespace:"htlcswitch"`
|
||||
|
||||
// LogWriter is the root logger that all of the daemon's subloggers are
|
||||
// hooked up to.
|
||||
LogWriter *build.RotatingLogWriter
|
||||
@@ -462,6 +464,8 @@ type Config struct {
|
||||
}
|
||||
|
||||
// DefaultConfig returns all default values for the Config struct.
|
||||
//
|
||||
// nolint:lll
|
||||
func DefaultConfig() Config {
|
||||
return Config{
|
||||
LndDir: DefaultLndDir,
|
||||
@@ -643,6 +647,9 @@ func DefaultConfig() Config {
|
||||
Sweeper: &lncfg.Sweeper{
|
||||
BatchWindowDuration: sweep.DefaultBatchWindowDuration,
|
||||
},
|
||||
Htlcswitch: &lncfg.Htlcswitch{
|
||||
MailboxDeliveryTimeout: htlcswitch.DefaultMailboxDeliveryTimeout,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1660,6 +1667,7 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser,
|
||||
cfg.RPCMiddleware,
|
||||
cfg.RemoteSigner,
|
||||
cfg.Sweeper,
|
||||
cfg.Htlcswitch,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user