File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -7796,6 +7796,14 @@ where
7796
7796
Ok(())
7797
7797
}
7798
7798
7799
+ #[cfg(splicing)]
7800
+ fn is_splicing(&self) -> bool {
7801
+ self.pending_splice
7802
+ .as_ref()
7803
+ .and_then(|pending_splice| Some(pending_splice.funding.is_some()))
7804
+ .unwrap_or(false)
7805
+ }
7806
+
7799
7807
pub fn funding_transaction_signed<L: Deref>(
7800
7808
&mut self, witnesses: Vec<Witness>, logger: &L,
7801
7809
) -> Result<Option<msgs::TxSignatures>, APIError>
@@ -7809,7 +7817,14 @@ where
7809
7817
.provide_holder_witnesses(self.context.channel_id, witnesses)
7810
7818
.map_err(|err| APIError::APIMisuseError { err })?
7811
7819
{
7812
- if self.is_awaiting_initial_mon_persist() {
7820
+ #[cfg(splicing)]
7821
+ let is_monitor_update_in_progress = self.is_awaiting_initial_mon_persist()
7822
+ || self.is_splicing()
7823
+ && self.context.channel_state.is_monitor_update_in_progress();
7824
+ #[cfg(not(splicing))]
7825
+ let is_monitor_update_in_progress = self.is_awaiting_initial_mon_persist();
7826
+
7827
+ if is_monitor_update_in_progress {
7813
7828
log_debug!(logger, "Not sending tx_signatures: a monitor update is in progress. Setting monitor_pending_tx_signatures.");
7814
7829
self.context.monitor_pending_tx_signatures = Some(holder_tx_signatures);
7815
7830
return Ok(None);
You can’t perform that action at this time.
0 commit comments