Skip to content

Add BOLT12 support to LSPS2 flow#817

Draft
tnull wants to merge 7 commits intolightningdevkit:mainfrom
tnull:2026-03-lsps2-bolt12-router-integration
Draft

Add BOLT12 support to LSPS2 flow#817
tnull wants to merge 7 commits intolightningdevkit:mainfrom
tnull:2026-03-lsps2-bolt12-router-integration

Conversation

@tnull
Copy link
Collaborator

@tnull tnull commented Mar 5, 2026

Based on #4463.

Draft for now.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Mar 5, 2026

👋 Hi! This PR is now in draft status.
I'll wait to assign reviewers until you mark it as ready for review.
Just convert it out of draft status when you're ready for review!

tnull added 7 commits March 24, 2026 14:25
Enable local `rust-lightning` path patches and update API compatibility call sites by passing the new `onion_message_interceptor` argument to `LiquidityManager::new` and the `max_feerate` argument to `ChannelManager::splice_channel`.

Co-Authored-By: HAL 9000
Wrap `DefaultRouter` in `LSPS2BOLT12Router`, register LSPS2 buy results against `OfferId`, and expose `Bolt12Payment` JIT receive APIs that create offers and route inbound blinded paths through LSPS2 intercept parameters.

Co-Authored-By: HAL 9000
Update all `rust-lightning` crate dependencies to `https://github.com/tnull/rust-lightning` at `c26cafa86424de9e6199b2907e1a41674b1c6dcc`, which is the latest commit on `2026-03-lsps2-bolt12-alt`.

Add a `[patch]` section for `https://github.com/lightningdevkit/rust-lightning` so transitive crates resolve to the same revision and avoid mixed `lightning` versions.

Co-Authored-By: HAL 9000
Update all `rust-lightning` crate references and patch overrides to `ed27564855b399b5eecd59f2547d667d6f48c4f7`, the latest commit on `tnull/rust-lightning` branch `2026-03-lsps2-bolt12-alt`.

Co-Authored-By: HAL 9000
Add an integration test that creates a BOLT12 JIT offer via LSPS2, restarts the LSP node after offer creation, and verifies payment still succeeds and opens the JIT channel path.

Co-Authored-By: HAL 9000
Document the startup point where persisted LSPS2 BOLT12 offer registrations should be reloaded and re-registered on the router once storage plumbing is added.

Co-Authored-By: HAL 9000
Update all `rust-lightning` crate references and patch overrides to `0e7bfa76774d087bac04cbc99e5625e2e17e014f`, the latest commit on branch `2026-03-lsps2-bolt12-alt`.

Co-Authored-By: HAL 9000
@tnull tnull force-pushed the 2026-03-lsps2-bolt12-router-integration branch from 1ff29e0 to c62ca3a Compare March 24, 2026 14:53
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.

2 participants