@@ -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(),
@@ -11864,7 +11864,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1186411864 None,
1186511865 ));
1186611866 pending_events.push_back((
11867- events::Event::SpliceFailed {
11867+ events::Event::SpliceNegotiationFailed {
1186811868 channel_id,
1186911869 counterparty_node_id: *counterparty_node_id,
1187011870 user_channel_id: channel.context().get_user_id(),
@@ -12025,7 +12025,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1202512025 None,
1202612026 ));
1202712027 pending_events.push_back((
12028- events::Event::SpliceFailed {
12028+ events::Event::SpliceNegotiationFailed {
1202912029 channel_id: msg.channel_id,
1203012030 counterparty_node_id,
1203112031 user_channel_id: chan.context().get_user_id(),
@@ -12112,7 +12112,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1211212112 let exited_quiescence = splice_negotiated.is_some();
1211312113 if let Some(splice_negotiated) = splice_negotiated {
1211412114 self.pending_events.lock().unwrap().push_back((
12115- events::Event::SplicePending {
12115+ events::Event::SpliceNegotiated {
1211612116 channel_id: msg.channel_id,
1211712117 counterparty_node_id: *counterparty_node_id,
1211812118 user_channel_id: chan.context.get_user_id(),
@@ -12195,7 +12195,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1219512195 None,
1219612196 ));
1219712197 pending_events.push_back((
12198- events::Event::SpliceFailed {
12198+ events::Event::SpliceNegotiationFailed {
1219912199 channel_id: msg.channel_id,
1220012200 counterparty_node_id: *counterparty_node_id,
1220112201 user_channel_id: chan_entry.get().context().get_user_id(),
@@ -12343,7 +12343,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1234312343 None,
1234412344 ));
1234512345 pending_events.push_back((
12346- events::Event::SpliceFailed {
12346+ events::Event::SpliceNegotiationFailed {
1234712347 channel_id: msg.channel_id,
1234812348 counterparty_node_id: *counterparty_node_id,
1234912349 user_channel_id: chan.context().get_user_id(),
@@ -15456,7 +15456,7 @@ impl<
1545615456 outputs: splice_funding_failed.contributed_outputs,
1545715457 },
1545815458 });
15459- splice_failed_events.push(events::Event::SpliceFailed {
15459+ splice_failed_events.push(events::Event::SpliceNegotiationFailed {
1546015460 channel_id: chan.context().channel_id(),
1546115461 counterparty_node_id,
1546215462 user_channel_id: chan.context().get_user_id(),
@@ -18112,8 +18112,9 @@ impl<
1811218112 let our_pending_intercepts = self.pending_intercepted_htlcs.lock().unwrap();
1811318113
1811418114 // Since some FundingNegotiation variants are not persisted, any splice in such state must
18115- // be failed upon reload. However, as the necessary information for the SpliceFailed and
18116- // DiscardFunding events is not persisted, the events need to be persisted even though they
18115+ // be failed upon reload. However, as the necessary information for the
18116+ // SpliceNegotiationFailed and DiscardFunding events is not persisted, the events need to
18117+ // be persisted even though they
1811718118 // haven't been emitted yet. These are removed after the events are written.
1811818119 let mut events = self.pending_events.lock().unwrap();
1811918120 let event_count = events.len();
@@ -18131,7 +18132,7 @@ impl<
1813118132 None,
1813218133 ));
1813318134 events.push_back((
18134- events::Event::SpliceFailed {
18135+ events::Event::SpliceNegotiationFailed {
1813518136 channel_id: chan.context.channel_id(),
1813618137 counterparty_node_id: chan.context.get_counterparty_node_id(),
1813718138 user_channel_id: chan.context.get_user_id(),
@@ -18260,7 +18261,7 @@ impl<
1826018261 (23, self.best_block.read().unwrap().previous_blocks, required),
1826118262 });
1826218263
18263- // Remove the SpliceFailed and DiscardFunding events added earlier.
18264+ // Remove the SpliceNegotiationFailed and DiscardFunding events added earlier.
1826418265 events.truncate(event_count);
1826518266
1826618267 Ok(())
0 commit comments