Skip to content

Conversation

@tnull
Copy link
Collaborator

@tnull tnull commented Nov 19, 2025

Previously the docs have been a bit sparse. Now that we actually implement the client-trusts-LSP flow, we should expand a bit on what the bool actually does.

Previously the docs have been a bit sparse. Now that we actually
implement the client-trusts-LSP flow, we should expand a bit on what the
bool actually does.
@tnull tnull added this to the 0.7 milestone Nov 19, 2025
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Nov 19, 2025

👋 Thanks for assigning @joostjager 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.

/// When set, the service will delay *broadcasting* the JIT channel's funding transaction until
/// the client claimed sufficient HTLC parts to pay for the channel open.
///
/// Note this will render the flow incompatible with clients utilizing the 'LSP-trust-client'
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps make it more clear that this bool switches between the two models, and that it should be false for LSP-trust-client. Maybe an enum would have been better here?

Copy link
Collaborator Author

@tnull tnull Nov 19, 2025

Choose a reason for hiding this comment

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

Well, the thing is that if we set this to false the client can do whatever (wait or immediately claim). While technically there are two modes, no client that I'm aware of will actually run LSP-trusts-client model. I even attempted to get it removed from the spec, but there are .. reasons .. why we can't at this point. Really, any client should just claim the HTLCs ASAP. So this flag is really only concerning the LSP, allowing to determine how strict/safe it wants to be.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why offer the boolean then if there is no demand yet and you think it shouldn't even be in the spec?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because the LSP might opt to be less strict. Some require to support 'LSP-trusts-client' from their (legal) side, but none actually expects the client to be strict and implement mempool-checking-before-claiming.

@tnull tnull requested a review from joostjager November 19, 2025 09:32
@tnull tnull merged commit 6410f92 into lightningdevkit:main Nov 19, 2025
17 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