Skip to content

Commit e8d9932

Browse files
committed
f don't run tx_signatures checks upon receiving duplicate tx_signatures
1 parent 2a2d94c commit e8d9932

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6561,7 +6561,10 @@ impl<SP: Deref> FundedChannel<SP> where
65616561
pub fn tx_signatures<L: Deref>(&mut self, msg: &msgs::TxSignatures, logger: &L) -> Result<(Option<Transaction>, Option<msgs::TxSignatures>), ChannelError>
65626562
where L::Target: Logger
65636563
{
6564-
if !matches!(self.context.channel_state, ChannelState::FundingNegotiated(flags) if flags.is_interactive_signing()) {
6564+
if !matches!(
6565+
self.context.channel_state,
6566+
ChannelState::FundingNegotiated(flags) if flags.is_interactive_signing() || !flags.is_their_tx_signatures_sent()
6567+
) {
65656568
return Err(ChannelError::Ignore("Ignoring tx_signatures received outside of interactive signing".to_owned()));
65666569
}
65676570

0 commit comments

Comments
 (0)