Skip to content

Conversation

joostjager
Copy link
Contributor

@joostjager joostjager commented Sep 16, 2025

With the merge of ttps://github.com/lightningdevkit/rust-lightning/pull/4049, it is now possible for a static invoice server to forward the invoice request to the recipient if they are online.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Sep 16, 2025

👋 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.

@joostjager joostjager requested a review from tnull September 16, 2025 09:31
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.

This has the static_invoice_server test failing

@joostjager
Copy link
Contributor Author

This has the static_invoice_server test failing

I noticed that on the other PR too. Wasn't sure if it was a general flake or a specific flake. I slow do get the feeling it might be specific.

@joostjager
Copy link
Contributor Author

Could repro locally after all. I think this may be caused by non-determinism introduced in lightningdevkit/rust-lightning#4049 where potentially two StaticInvoice onion messages may arrive at the sender in some order.

The flake disappears with lightningdevkit/rust-lightning#4046.

I am going to take the easy way and won't try to debug this intermediate state of the ldk code. Closing this PR and moving the commit to #632

@joostjager joostjager closed this Sep 16, 2025
@tnull
Copy link
Collaborator

tnull commented Sep 17, 2025

I am going to take the easy way and won't try to debug this intermediate state of the ldk code. Closing this PR and moving the commit to #632

Hmm, it would be appreciated to at least somehow address the API changes on LDK main though. To get #633 to build I have to bump the tracked commit and that would include the static invoice store related API changes.

With the merge of
lightningdevkit/rust-lightning#4049,
it is now possible for a static invoice server to forward the invoice
request to the recipient if they are online.
@joostjager joostjager force-pushed the always-online-fwd-inv-req branch from 54adf2f to 2a912d2 Compare September 18, 2025 08:49
@joostjager
Copy link
Contributor Author

LDK issue fixed in lightningdevkit/rust-lightning#4078

@joostjager joostjager requested a review from tnull September 18, 2025 08:51
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.

LGTM mod one question.

To better align with the expected real life setup.
@joostjager joostjager force-pushed the always-online-fwd-inv-req branch from 2a912d2 to efbef4c Compare September 18, 2025 08:59
@joostjager joostjager requested a review from tnull September 18, 2025 09:02
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.

ACK

@tnull tnull merged commit 0f1d66c into lightningdevkit:develop Sep 18, 2025
14 of 15 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