diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 2970c33c1..34e815e72 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -5109,6 +5109,7 @@ func NewUnilateralCloseSummary(chanState *channeldb.OpenChannel, signer Signer, IsPending: true, RemoteCurrentRevocation: chanState.RemoteCurrentRevocation, RemoteNextRevocation: chanState.RemoteNextRevocation, + ShortChanID: chanState.ShortChanID(), LocalChanConfig: chanState.LocalChanCfg, } diff --git a/lnwallet/channel_test.go b/lnwallet/channel_test.go index b596befbb..4586d75e3 100644 --- a/lnwallet/channel_test.go +++ b/lnwallet/channel_test.go @@ -4805,6 +4805,16 @@ func TestChannelUnilateralClosePendingCommit(t *testing.T) { t.Fatalf("unable to find alice's commit resolution") } + // The proper short channel ID should also be set in Alice's close + // channel summary. + if aliceCloseSummary.ChannelCloseSummary.ShortChanID != + aliceChannel.ShortChanID() { + + t.Fatalf("wrong short chan ID, expected %v got %v", + aliceChannel.ShortChanID(), + aliceCloseSummary.ChannelCloseSummary.ShortChanID) + } + aliceSignDesc := aliceCloseSummary.CommitResolution.SelfOutputSignDesc // Finally, we'll ensure that we're able to properly sweep our output