Skip to content

Commit 6ab8d23

Browse files
committed
Check funding transaction on outbound channels only
This was a slight regression, but not a critical one. Only outbound channels should have a funding transaction present.
1 parent 4bcf2ce commit 6ab8d23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4228,8 +4228,8 @@ impl<SP: Deref> Channel<SP> where
42284228
// first received the funding_signed.
42294229
let mut funding_broadcastable =
42304230
if self.context.is_outbound() &&
4231-
matches!(self.context.channel_state, ChannelState::AwaitingChannelReady(flags) if !flags.is_set(AwaitingChannelReadyFlags::WAITING_FOR_BATCH)) ||
4232-
matches!(self.context.channel_state, ChannelState::ChannelReady(_))
4231+
(matches!(self.context.channel_state, ChannelState::AwaitingChannelReady(flags) if !flags.is_set(AwaitingChannelReadyFlags::WAITING_FOR_BATCH)) ||
4232+
matches!(self.context.channel_state, ChannelState::ChannelReady(_)))
42334233
{
42344234
self.context.funding_transaction.take()
42354235
} else { None };

0 commit comments

Comments
 (0)