Skip to content

Commit a35392f

Browse files
jkczyzAnyitechs
authored andcommitted
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 3d12105 commit a35392f

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
@@ -6467,6 +6467,7 @@ macro_rules! promote_splice_funding {
64676467
core::mem::swap(&mut $self.funding, $funding);
64686468
$self.interactive_tx_signing_session = None;
64696469
$self.pending_splice = None;
6470+
$self.context.announcement_sigs = None;
64706471
$self.context.announcement_sigs_state = AnnouncementSigsState::NotSent;
64716472

64726473
// The swap above places the previous `FundingScope` into `pending_funding`.

0 commit comments

Comments
 (0)