From 4701f00cfd0d6ff4022350bf93164f0de7b5e7a8 Mon Sep 17 00:00:00 2001 From: bitromortac Date: Tue, 23 Sep 2025 10:36:04 +0200 Subject: [PATCH] htlcswitch: let link notify on remote commit sig --- htlcswitch/link.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index f67d4b4af..1db005bf8 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -1817,6 +1817,13 @@ func (l *channelLink) handleUpstreamMsg(ctx context.Context, case *lnwire.CommitSig: err = l.processRemoteCommitSig(ctx, msg) + // At this point our local commitment state has been irrevocably + // committed to and our balances are updated. We notify our + // subscribers that the channel state has been updated. + if err == nil { + l.cfg.NotifyChannelUpdate(l.channel.ChannelState()) + } + case *lnwire.RevokeAndAck: err = l.processRemoteRevokeAndAck(ctx, msg)