@@ -4119,7 +4119,7 @@ impl<
41194119 None,
41204120 ));
41214121 pending_events.push_back((
4122- events::Event::SpliceFailed {
4122+ events::Event::SpliceNegotiationFailed {
41234123 channel_id: *chan_id,
41244124 counterparty_node_id: *counterparty_node_id,
41254125 user_channel_id: chan.context().get_user_id(),
@@ -4425,7 +4425,7 @@ impl<
44254425 None,
44264426 ));
44274427 pending_events.push_back((
4428- events::Event::SpliceFailed {
4428+ events::Event::SpliceNegotiationFailed {
44294429 channel_id: shutdown_res.channel_id,
44304430 counterparty_node_id: shutdown_res.counterparty_node_id,
44314431 user_channel_id: shutdown_res.user_channel_id,
@@ -4931,7 +4931,7 @@ impl<
49314931 None,
49324932 ));
49334933 pending_events.push_back((
4934- events::Event::SpliceFailed {
4934+ events::Event::SpliceNegotiationFailed {
49354935 channel_id: *channel_id,
49364936 counterparty_node_id: *counterparty_node_id,
49374937 user_channel_id: chan.context.get_user_id(),
@@ -6629,7 +6629,7 @@ impl<
66296629 ));
66306630 }
66316631 pending_events.push_back((
6632- events::Event::SpliceFailed {
6632+ events::Event::SpliceNegotiationFailed {
66336633 channel_id,
66346634 counterparty_node_id,
66356635 user_channel_id,
@@ -6675,14 +6675,14 @@ impl<
66756675 /// # Events
66766676 ///
66776677 /// Calling this method will commence the process of creating a new funding transaction for the
6678- /// channel. Once the funding transaction has been constructed, an [`Event::SplicePending `]
6678+ /// channel. Once the funding transaction has been constructed, an [`Event::SpliceNegotiated `]
66796679 /// will be emitted. At this point, any inputs contributed to the splice can only be re-spent
66806680 /// if an [`Event::DiscardFunding`] is seen.
66816681 ///
6682- /// If any failures occur while negotiating the funding transaction, an [`Event::SpliceFailed`]
6683- /// will be emitted. Any contributed inputs no longer used will be included in an
6684- /// [`Event::DiscardFunding`] and thus can be re-spent. If a [`FundingTemplate`] was obtained
6685- /// while a previous splice was still being negotiated, its
6682+ /// If any failures occur while negotiating the funding transaction, an
6683+ /// [`Event::SpliceNegotiationFailed`] will be emitted. Any contributed inputs no longer used
6684+ /// will be included in an [`Event::DiscardFunding`] and thus can be re-spent. If a
6685+ /// [`FundingTemplate`] was obtained while a previous splice was still being negotiated, its
66866686 /// [`min_rbf_feerate`][FundingTemplate::min_rbf_feerate] may be stale after the failure.
66876687 /// Call [`ChannelManager::splice_channel`] again to get a fresh template.
66886688 ///
@@ -6901,7 +6901,7 @@ impl<
69016901 }
69026902 if let Some(splice_negotiated) = splice_negotiated {
69036903 self.pending_events.lock().unwrap().push_back((
6904- events::Event::SplicePending {
6904+ events::Event::SpliceNegotiated {
69056905 channel_id: *channel_id,
69066906 counterparty_node_id: *counterparty_node_id,
69076907 user_channel_id: chan.context().get_user_id(),
@@ -10994,7 +10994,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1099410994 .and_then(|v| v.splice_negotiated.take())
1099510995 {
1099610996 pending_events.push_back((
10997- events::Event::SplicePending {
10997+ events::Event::SpliceNegotiated {
1099810998 channel_id: channel.context.channel_id(),
1099910999 counterparty_node_id,
1100011000 user_channel_id: channel.context.get_user_id(),
@@ -11862,7 +11862,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1186211862 None,
1186311863 ));
1186411864 pending_events.push_back((
11865- events::Event::SpliceFailed {
11865+ events::Event::SpliceNegotiationFailed {
1186611866 channel_id,
1186711867 counterparty_node_id: *counterparty_node_id,
1186811868 user_channel_id: channel.context().get_user_id(),
@@ -12021,7 +12021,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1202112021 None,
1202212022 ));
1202312023 pending_events.push_back((
12024- events::Event::SpliceFailed {
12024+ events::Event::SpliceNegotiationFailed {
1202512025 channel_id: msg.channel_id,
1202612026 counterparty_node_id,
1202712027 user_channel_id: chan.context().get_user_id(),
@@ -12108,7 +12108,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1210812108 let exited_quiescence = splice_negotiated.is_some();
1210912109 if let Some(splice_negotiated) = splice_negotiated {
1211012110 self.pending_events.lock().unwrap().push_back((
12111- events::Event::SplicePending {
12111+ events::Event::SpliceNegotiated {
1211212112 channel_id: msg.channel_id,
1211312113 counterparty_node_id: *counterparty_node_id,
1211412114 user_channel_id: chan.context.get_user_id(),
@@ -12191,7 +12191,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1219112191 None,
1219212192 ));
1219312193 pending_events.push_back((
12194- events::Event::SpliceFailed {
12194+ events::Event::SpliceNegotiationFailed {
1219512195 channel_id: msg.channel_id,
1219612196 counterparty_node_id: *counterparty_node_id,
1219712197 user_channel_id: chan_entry.get().context().get_user_id(),
@@ -12339,7 +12339,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1233912339 None,
1234012340 ));
1234112341 pending_events.push_back((
12342- events::Event::SpliceFailed {
12342+ events::Event::SpliceNegotiationFailed {
1234312343 channel_id: msg.channel_id,
1234412344 counterparty_node_id: *counterparty_node_id,
1234512345 user_channel_id: chan.context().get_user_id(),
@@ -15452,7 +15452,7 @@ impl<
1545215452 outputs: splice_funding_failed.contributed_outputs,
1545315453 },
1545415454 });
15455- splice_failed_events.push(events::Event::SpliceFailed {
15455+ splice_failed_events.push(events::Event::SpliceNegotiationFailed {
1545615456 channel_id: chan.context().channel_id(),
1545715457 counterparty_node_id,
1545815458 user_channel_id: chan.context().get_user_id(),
@@ -18108,8 +18108,9 @@ impl<
1810818108 let our_pending_intercepts = self.pending_intercepted_htlcs.lock().unwrap();
1810918109
1811018110 // Since some FundingNegotiation variants are not persisted, any splice in such state must
18111- // be failed upon reload. However, as the necessary information for the SpliceFailed and
18112- // DiscardFunding events is not persisted, the events need to be persisted even though they
18111+ // be failed upon reload. However, as the necessary information for the
18112+ // SpliceNegotiationFailed and DiscardFunding events is not persisted, the events need to
18113+ // be persisted even though they
1811318114 // haven't been emitted yet. These are removed after the events are written.
1811418115 let mut events = self.pending_events.lock().unwrap();
1811518116 let event_count = events.len();
@@ -18127,7 +18128,7 @@ impl<
1812718128 None,
1812818129 ));
1812918130 events.push_back((
18130- events::Event::SpliceFailed {
18131+ events::Event::SpliceNegotiationFailed {
1813118132 channel_id: chan.context.channel_id(),
1813218133 counterparty_node_id: chan.context.get_counterparty_node_id(),
1813318134 user_channel_id: chan.context.get_user_id(),
@@ -18256,7 +18257,7 @@ impl<
1825618257 (23, self.best_block.read().unwrap().previous_blocks, required),
1825718258 });
1825818259
18259- // Remove the SpliceFailed and DiscardFunding events added earlier.
18260+ // Remove the SpliceNegotiationFailed and DiscardFunding events added earlier.
1826018261 events.truncate(event_count);
1826118262
1826218263 Ok(())
0 commit comments