From 998c69e822483e129e20d0e6aac20220a41d9997 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 19 Nov 2025 09:18:55 +0100 Subject: [PATCH] Expand docs on `LSPS2ServiceConfig::client_trusts_lsp` field 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. --- src/liquidity.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/liquidity.rs b/src/liquidity.rs index ee520e14d..74e6098dd 100644 --- a/src/liquidity.rs +++ b/src/liquidity.rs @@ -130,7 +130,18 @@ pub struct LSPS2ServiceConfig { pub min_payment_size_msat: u64, /// The maximum payment size that we will accept when opening a channel. pub max_payment_size_msat: u64, - /// Use the client trusts lsp model + /// Use the 'client-trusts-LSP' trust model. + /// + /// 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' + /// trust model, i.e., in turn delay *claiming* any HTLCs until they see the funding + /// transaction in the mempool. + /// + /// Please refer to [`bLIP-52`] for more information. + /// + /// [`bLIP-52`]: https://github.com/lightning/blips/blob/master/blip-0052.md#trust-models pub client_trusts_lsp: bool, }