Skip to content

Bump LDK dependency for RecipientOnionFields and SpliceFailed changes#806

Merged
tnull merged 2 commits intolightningdevkit:mainfrom
jkczyz:2026-02-splicing-events
Feb 25, 2026
Merged

Bump LDK dependency for RecipientOnionFields and SpliceFailed changes#806
tnull merged 2 commits intolightningdevkit:mainfrom
jkczyz:2026-02-splicing-events

Conversation

@jkczyz
Copy link
Contributor

@jkczyz jkczyz commented Feb 24, 2026

Bumps the LDK dependency to include changes to the RecipientOnionFields constructor (lightningdevkit/rust-lightning#4373) and SpliceFailed event (lightningdevkit/rust-lightning#4388).

RecipientOnionFields::spontaneous_empty now takes the amount to send.
A splice's contributed inputs and outputs were moved from the
SpliceFailed event to the DiscardFunding event under a new FundingInfo
variant. Move the handling of reclaiming unused addresses to the
DiscardFunding handler.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Feb 24, 2026

👋 Thanks for assigning @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@jkczyz jkczyz requested a review from tnull February 24, 2026 21:52
Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, mod one comment.

@benthecarman Do you intend to open a follow-up PR that actually adds new APIs making use of the RecipientOnionFields changes?

output: outputs,
};
if let Err(e) = self.wallet.cancel_tx(&tx) {
log_error!(self.logger, "Failed reclaiming unused addresses: {}", e);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I think we should log that persistence failed here, as this is also why we replay the event. Otherwise we probably shouldn't replay.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wallet::cancel_tx already logs that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, duh.

@tnull tnull merged commit 7ad0d63 into lightningdevkit:main Feb 25, 2026
25 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants