Skip to content

Commit 2bde91e

Browse files
jkczyzclaude
andcommitted
Document SpliceNegotiationFailed contribution / DiscardFunding overlap
The contribution returned in Event::SpliceNegotiationFailed may include inputs and outputs already committed to a prior negotiated (but not yet locked) splice transaction. Those overlapping items are intentionally omitted from the preceding Event::DiscardFunding to avoid prompting the user to reclaim UTXOs that are still in use elsewhere. The relationship was documented on the internal SpliceFundingFailed fields but lost when they were made private; surface it on the public event field doc. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f94d53e commit 2bde91e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lightning/src/events/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,12 @@ pub enum Event {
17061706
/// Alternatively, call [`ChannelManager::splice_channel`] to obtain a fresh
17071707
/// [`FundingTemplate`] and build a new contribution.
17081708
///
1709+
/// The contribution preserves the full set of inputs and outputs from the failed round,
1710+
/// including any that were also committed to a prior negotiated (but not yet locked)
1711+
/// splice transaction. Those overlapping inputs and outputs are intentionally omitted
1712+
/// from the preceding [`Event::DiscardFunding`], since they remain committed to that
1713+
/// prior splice.
1714+
///
17091715
/// [`ChannelManager::funding_contributed`]: crate::ln::channelmanager::ChannelManager::funding_contributed
17101716
/// [`ChannelManager::splice_channel`]: crate::ln::channelmanager::ChannelManager::splice_channel
17111717
/// [`FundingTemplate`]: crate::ln::funding::FundingTemplate

0 commit comments

Comments
 (0)