You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Provide a `channel_ready` message if we need to, but only if we're _not_ still pending
5469
+
// funding.
5470
+
let channel_ready = if self.context.signer_pending_channel_ready && !self.context.signer_pending_funding {
5471
+
log_trace!(logger, "Attempting to generate pending channel_ready...");
5472
+
self.get_channel_ready(logger)
5466
5473
} else { None };
5467
5474
5468
5475
let mut commitment_update = if self.context.signer_pending_commitment_update {
@@ -6606,14 +6613,6 @@ impl<SP: Deref> Channel<SP> where
6606
6613
return None;
6607
6614
}
6608
6615
6609
-
// If we're still pending the signature on a funding transaction, then we're not ready to send a
6610
-
// channel_ready yet.
6611
-
if self.context.signer_pending_funding {
6612
-
// TODO: set signer_pending_channel_ready
6613
-
log_debug!(logger, "Can't produce channel_ready: the signer is pending funding.");
6614
-
return None;
6615
-
}
6616
-
6617
6616
// Note that we don't include ChannelState::WaitingForBatch as we don't want to send
6618
6617
// channel_ready until the entire batch is ready.
6619
6618
let need_commitment_update = if matches!(self.context.channel_state, ChannelState::AwaitingChannelReady(f) if f.clone().clear(FundedStateFlags::ALL.into()).is_empty()) {
@@ -6659,6 +6658,17 @@ impl<SP: Deref> Channel<SP> where
6659
6658
return None;
6660
6659
}
6661
6660
6661
+
// If we're still pending the signature on a funding transaction, then we're not ready to send a
6662
+
// channel_ready yet.
6663
+
if self.context.signer_pending_funding {
6664
+
log_debug!(logger, "Can't produce channel_ready: the signer is pending funding.");
6665
+
// We make sure to set the channel ready flag here so that we try to
6666
+
// generate a channel ready for 0conf channels once our signer unblocked
0 commit comments