mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
htlcswitch: auto-fail held htlcs
Make the interceptable switch aware of htlc expiry and fail back htlcs in-time to prevent the counterparty from force-closing the channel.
This commit is contained in:
@@ -670,6 +670,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
&htlcswitch.InterceptableSwitchConfig{
|
||||
Switch: s.htlcSwitch,
|
||||
CltvRejectDelta: lncfg.DefaultFinalCltvRejectDelta,
|
||||
CltvInterceptDelta: lncfg.DefaultCltvInterceptDelta,
|
||||
RequireInterceptor: s.cfg.RequireInterceptor,
|
||||
Notifier: s.cc.ChainNotifier,
|
||||
},
|
||||
|
Reference in New Issue
Block a user