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
5479
+
// funding.
5480
+
let channel_ready = if self.context.signer_pending_channel_ready && !self.context.signer_pending_funding {
5481
+
log_trace!(logger, "Attempting to generate pending channel_ready...");
5482
+
self.get_channel_ready(logger)
5476
5483
} else { None };
5477
5484
5478
5485
let mut commitment_update = if self.context.signer_pending_commitment_update {
@@ -6634,14 +6641,6 @@ impl<SP: Deref> Channel<SP> where
6634
6641
return None;
6635
6642
}
6636
6643
6637
-
// If we're still pending the signature on a funding transaction, then we're not ready to send a
6638
-
// channel_ready yet.
6639
-
if self.context.signer_pending_funding {
6640
-
// TODO: set signer_pending_channel_ready
6641
-
log_debug!(logger, "Can't produce channel_ready: the signer is pending funding.");
6642
-
return None;
6643
-
}
6644
-
6645
6644
// Note that we don't include ChannelState::WaitingForBatch as we don't want to send
6646
6645
// channel_ready until the entire batch is ready.
6647
6646
let need_commitment_update = if matches!(self.context.channel_state, ChannelState::AwaitingChannelReady(f) if f.clone().clear(FundedStateFlags::ALL.into()).is_empty()) {
@@ -6687,6 +6686,17 @@ impl<SP: Deref> Channel<SP> where
6687
6686
return None;
6688
6687
}
6689
6688
6689
+
// If we're still pending the signature on a funding transaction, then we're not ready to send a
6690
+
// channel_ready yet.
6691
+
if self.context.signer_pending_funding {
6692
+
log_debug!(logger, "Can't produce channel_ready: the signer is pending funding.");
6693
+
// We make sure to set the channel ready flag here so that we try to
6694
+
// generate a channel ready for 0conf channels once our signer unblocked
0 commit comments