Skip to content

Commit db20e6f

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 8ac6f24 commit db20e6f

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
@@ -6110,6 +6110,7 @@ macro_rules! promote_splice_funding {
61106110
$self.interactive_tx_signing_session = None;
61116111
$self.pending_splice = None;
61126112
$self.pending_funding.clear();
6113+
$self.context.announcement_sigs = None;
61136114
$self.context.announcement_sigs_state = AnnouncementSigsState::NotSent;
61146115
};
61156116
}

0 commit comments

Comments
 (0)