server+contractcourt: signal channel fully resolved

We might want to react to a channel being fully resolved after being
involved in a force close. For this we add a new callback and invoke it
where appropriate.
This commit is contained in:
Oliver Gugger committed 2021-08-09 13:55:31 +02:00
1 parent dcff9e5e26
commit 7e68cae8bd
2 files changed
+18

No files matched your search

+1
View File
@@ -1004,6 +1004,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
Sweeper: s.sweeper,
Registry: s.invoices,
NotifyClosedChannel: s.channelNotifier.NotifyClosedChannelEvent,
NotifyFullyResolvedChannel: s.channelNotifier.NotifyFullyResolvedChannelEvent,
OnionProcessor: s.sphinx,
PaymentsExpirationGracePeriod: cfg.PaymentsExpirationGracePeriod,
IsForwardedHTLC: s.htlcSwitch.IsForwardedHTLC,