File tree Expand file tree Collapse file tree 2 files changed +23
-11
lines changed Expand file tree Collapse file tree 2 files changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -1809,13 +1809,23 @@ where
1809
1809
{
1810
1810
let mut signing_session =
1811
1811
interactive_tx_constructor.into_signing_session();
1812
- let (commitment_signed, event) = chan.context.funding_tx_constructed(
1813
- &mut funding,
1814
- &mut signing_session,
1815
- true,
1816
- chan.holder_commitment_point.transaction_number(),
1817
- &&logger,
1818
- )?;
1812
+ let (commitment_signed, event) = chan
1813
+ .context
1814
+ .funding_tx_constructed(
1815
+ &mut funding,
1816
+ &mut signing_session,
1817
+ true,
1818
+ chan.holder_commitment_point.transaction_number(),
1819
+ &&logger,
1820
+ )
1821
+ // Don't close a funded channel if splicing fails
1822
+ .map_err(|e| {
1823
+ if let ChannelError::Close((message, _)) = e {
1824
+ ChannelError::Warn(message)
1825
+ } else {
1826
+ e
1827
+ }
1828
+ })?;
1819
1829
1820
1830
chan.interactive_tx_signing_session = Some(signing_session);
1821
1831
pending_splice.funding_negotiation =
Original file line number Diff line number Diff line change @@ -9730,10 +9730,12 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9730
9730
peer_state.pending_msg_events.push(msg_send_event);
9731
9731
};
9732
9732
if negotiation_complete {
9733
- let (commitment_signed, funding_ready_for_sig_event_opt) = chan_entry
9734
- .get_mut()
9735
- .funding_tx_constructed(&self.logger)
9736
- .map_err(|err| MsgHandleErrInternal::send_err_msg_no_close(format!("{}", err), msg.channel_id))?;
9733
+ let (commitment_signed, funding_ready_for_sig_event_opt) = try_channel_entry!(
9734
+ self,
9735
+ peer_state,
9736
+ chan_entry.get_mut().funding_tx_constructed(&self.logger),
9737
+ chan_entry
9738
+ );
9737
9739
if let Some(funding_ready_for_sig_event) = funding_ready_for_sig_event_opt {
9738
9740
let mut pending_events = self.pending_events.lock().unwrap();
9739
9741
pending_events.push_back((funding_ready_for_sig_event, None));
You can’t perform that action at this time.
0 commit comments