Skip to content

Commit 66ec81d

Browse files
committed
Clear announcement_sigs on FundingScope promotion
When a splice transaction is promoted (i.e., when splice_locked has been exchanged), announcement_signatures must be sent. However, if we try to send a channel_announcement before they are received, then the signatures will be incorrect. To avoid this, clear the counterparty's announcement_signatures upon promoting a FundingScope.
1 parent f45f83b commit 66ec81d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5915,6 +5915,7 @@ macro_rules! promote_splice_funding {
59155915
core::mem::swap(&mut $self.funding, $funding);
59165916
$self.pending_splice = None;
59175917
$self.pending_funding.clear();
5918+
$self.context.announcement_sigs = None;
59185919
$self.context.announcement_sigs_state = AnnouncementSigsState::NotSent;
59195920
};
59205921
}

0 commit comments

Comments
 (0)