htlcswitch: add dedicated block subscription to interceptable switch

Preparation for making the interceptable switch aware of expiring htlcs.
This commit is contained in:
Joost Jager
2022-08-15 15:28:23 +02:00
parent 4a3e90f4d0
commit a6df9567ba
4 changed files with 92 additions and 5 deletions

View File

@@ -671,6 +671,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
Switch: s.htlcSwitch,
CltvRejectDelta: lncfg.DefaultFinalCltvRejectDelta,
RequireInterceptor: s.cfg.RequireInterceptor,
Notifier: s.cc.ChainNotifier,
},
)