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:
13 files changed
+429
-212
No files matched your search
@@ -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