Skip to content

Commit 5ab8676

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 a339adf commit 5ab8676

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
@@ -5961,6 +5961,7 @@ macro_rules! promote_splice_funding {
59615961
core::mem::swap(&mut $self.funding, $funding);
59625962
$self.pending_splice = None;
59635963
$self.pending_funding.clear();
5964+
$self.context.announcement_sigs = None;
59645965
$self.context.announcement_sigs_state = AnnouncementSigsState::NotSent;
59655966
};
59665967
}

0 commit comments

Comments
 (0)