File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -8150,6 +8150,20 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
8150
8150
8151
8151
Ok((channel, funding_signed, channel_monitor))
8152
8152
}
8153
+
8154
+ /// Indicates that the signer may have some signatures for us, so we should retry if we're
8155
+ /// blocked.
8156
+ #[allow(unused)]
8157
+ pub fn signer_maybe_unblocked<L: Deref>(&mut self, logger: &L) -> Option<msgs::AcceptChannel>
8158
+ where L::Target: Logger
8159
+ {
8160
+ if !self.context.holder_commitment_point.is_available() {
8161
+ self.context.holder_commitment_point.advance(&self.context.holder_signer, &self.context.secp_ctx, logger);
8162
+ }
8163
+ if self.signer_pending_accept_channel && self.context.holder_commitment_point.is_available() {
8164
+ self.generate_accept_channel_message(logger)
8165
+ } else { None }
8166
+ }
8153
8167
}
8154
8168
8155
8169
// A not-yet-funded outbound (from holder) channel using V2 channel establishment.
Original file line number Diff line number Diff line change @@ -8183,9 +8183,17 @@ where
8183
8183
});
8184
8184
}
8185
8185
}
8186
- ChannelPhase::UnfundedInboundV1(_) => {},
8186
+ ChannelPhase::UnfundedInboundV1(chan) => {
8187
+ let logger = WithChannelContext::from(&self.logger, &chan.context, None);
8188
+ if let Some(msg) = chan.signer_maybe_unblocked(&&logger) {
8189
+ pending_msg_events.push(events::MessageSendEvent::SendAcceptChannel {
8190
+ node_id,
8191
+ msg,
8192
+ });
8193
+ }
8194
+ },
8187
8195
}
8188
- };
8196
+ };
8189
8197
8190
8198
let per_peer_state = self.per_peer_state.read().unwrap();
8191
8199
if let Some((counterparty_node_id, channel_id)) = channel_opt {
You can’t perform that action at this time.
0 commit comments