File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -6175,11 +6175,8 @@ impl<SP: Deref> FundedChannel<SP> where
6175
6175
6176
6176
let (holder_tx_signatures_opt, funding_tx_opt) = signing_session.received_tx_signatures(msg.clone())
6177
6177
.map_err(|_| ChannelError::Warn("Witness count did not match contributed input count".to_string()))?;
6178
- if holder_tx_signatures_opt.is_some() && self.is_awaiting_initial_mon_persist() {
6179
- log_debug!(logger, "Not sending tx_signatures: a monitor update is in progress. Setting monitor_pending_tx_signatures.");
6180
- self.context.monitor_pending_tx_signatures = holder_tx_signatures_opt;
6181
- return Ok(None);
6182
- }
6178
+
6179
+
6183
6180
if funding_tx_opt.is_some() {
6184
6181
// We have a finalized funding transaction, so we can set the funding transaction and reset the
6185
6182
// signing session fields.
@@ -6188,6 +6185,12 @@ impl<SP: Deref> FundedChannel<SP> where
6188
6185
self.interactive_tx_signing_session = None;
6189
6186
}
6190
6187
6188
+ if holder_tx_signatures_opt.is_some() && self.is_awaiting_initial_mon_persist() {
6189
+ log_debug!(logger, "Not sending tx_signatures: a monitor update is in progress. Setting monitor_pending_tx_signatures.");
6190
+ self.context.monitor_pending_tx_signatures = holder_tx_signatures_opt;
6191
+ return Ok(None);
6192
+ }
6193
+
6191
6194
Ok(holder_tx_signatures_opt)
6192
6195
} else {
6193
6196
Err(ChannelError::Close((
You can’t perform that action at this time.
0 commit comments