Skip to content

Commit 724a855

Browse files
committed
f don't run tx_signatures checks upon receiving duplicate tx_signatures
1 parent 55e95dd commit 724a855

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
@@ -6591,7 +6591,10 @@ impl<SP: Deref> FundedChannel<SP> where
65916591
pub fn tx_signatures<L: Deref>(&mut self, msg: &msgs::TxSignatures, logger: &L) -> Result<(Option<Transaction>, Option<msgs::TxSignatures>), ChannelError>
65926592
where L::Target: Logger
65936593
{
6594-
if !matches!(self.context.channel_state, ChannelState::FundingNegotiated(flags) if flags.is_interactive_signing()) {
6594+
if !matches!(
6595+
self.context.channel_state,
6596+
ChannelState::FundingNegotiated(flags) if flags.is_interactive_signing() || !flags.is_their_tx_signatures_sent()
6597+
) {
65956598
return Err(ChannelError::Ignore("Ignoring tx_signatures received outside of interactive signing".to_owned()));
65966599
}
65976600

0 commit comments

Comments
 (0)