mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
htlcswitch: add InterceptableSwitchConfig
Preparation for adding more config options.
This commit is contained in:
@ -667,8 +667,11 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
return nil, err
|
||||
}
|
||||
s.interceptableSwitch = htlcswitch.NewInterceptableSwitch(
|
||||
s.htlcSwitch, lncfg.DefaultFinalCltvRejectDelta,
|
||||
s.cfg.RequireInterceptor,
|
||||
&htlcswitch.InterceptableSwitchConfig{
|
||||
Switch: s.htlcSwitch,
|
||||
CltvRejectDelta: lncfg.DefaultFinalCltvRejectDelta,
|
||||
RequireInterceptor: s.cfg.RequireInterceptor,
|
||||
},
|
||||
)
|
||||
|
||||
s.witnessBeacon = newPreimageBeacon(
|
||||
|
Reference in New Issue
Block a user