Skip to content

Commit f538153

Browse files
committed
Add an LSPS2-BOLT12 end-to-end integration test
Cover the full offer-payment flow from onion-message invoice exchange through HTLC interception, JIT channel opening, and settlement. This confirms the LSPS2 router and service handler work together in the integrated path. Co-Authored-By: HAL 9000
1 parent 9d0f371 commit f538153

2 files changed

Lines changed: 471 additions & 15 deletions

File tree

lightning-liquidity/src/lsps2/router.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ pub struct LSPS2Bolt12InvoiceParameters {
4141
/// A router wrapper that injects LSPS2-specific BOLT12 blinded payment paths for registered
4242
/// intercept SCIDs while delegating all other blinded path creation behaviors to the inner router.
4343
///
44-
/// For **payment** blinded paths (in invoices), it returns the intercept SCID as the forwarding
45-
/// hop so that the LSP can intercept the HTLC and open a JIT channel.
44+
/// For **payment** blinded paths (in invoices), it appends paths using the intercept SCID as the
45+
/// forwarding hop so that the LSP can intercept the HTLC and open a JIT channel. Paths from the
46+
/// inner router (e.g., through pre-existing channels) are included as well, allowing payers to
47+
/// use existing inbound liquidity when available.
4648
///
4749
/// This wrapper does **not** modify blinded onion-message paths. Async static-invoice and LSPS5
4850
/// users should rely on their normal [`MessageRouter`] integration and any out-of-band SCID to

0 commit comments

Comments
 (0)