Skip to content

Commit 0cba149

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 1b52eb6 commit 0cba149

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
@@ -6106,6 +6106,7 @@ macro_rules! promote_splice_funding {
61066106
$self.interactive_tx_signing_session = None;
61076107
$self.pending_splice = None;
61086108
$self.pending_funding.clear();
6109+
$self.context.announcement_sigs = None;
61096110
$self.context.announcement_sigs_state = AnnouncementSigsState::NotSent;
61106111
};
61116112
}

0 commit comments

Comments
 (0)