Skip to content
Open
12 changes: 11 additions & 1 deletion lightning-liquidity/src/lsps2/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ pub enum LSPS2ClientEvent {
/// When the invoice is paid, the LSP will open a channel with the previously agreed upon
/// parameters to you.
///
/// For BOLT11 JIT invoices, `intercept_scid` and `cltv_expiry_delta` can be used in a route
/// hint.
///
/// For BOLT12 JIT flows, register these parameters for your offer id on an
/// [`LSPS2BOLT12Router`] and then proceed with the regular BOLT12 offer
/// flow. The router will inject the LSPS2-specific blinded payment path when creating the
/// invoice.
///
/// **Note: ** This event will *not* be persisted across restarts.
///
/// [`LSPS2BOLT12Router`]: crate::lsps2::router::LSPS2BOLT12Router
InvoiceParametersReady {
/// The identifier of the issued bLIP-52 / LSPS2 `buy` request, as returned by
/// [`LSPS2ClientHandler::select_opening_params`].
Expand All @@ -63,7 +73,7 @@ pub enum LSPS2ClientEvent {
/// The intercept short channel id to use in the route hint.
intercept_scid: u64,
/// The `cltv_expiry_delta` to use in the route hint.
cltv_expiry_delta: u32,
cltv_expiry_delta: u16,
/// The initial payment size you specified.
payment_size_msat: Option<u64>,
},
Expand Down
1 change: 1 addition & 0 deletions lightning-liquidity/src/lsps2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ pub mod client;
pub mod event;
pub mod msgs;
pub(crate) mod payment_queue;
pub mod router;
pub mod service;
pub mod utils;
2 changes: 1 addition & 1 deletion lightning-liquidity/src/lsps2/msgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub struct LSPS2BuyResponse {
/// The intercept short channel id used by LSP to identify need to open channel.
pub jit_channel_scid: LSPS2InterceptScid,
/// The locktime expiry delta the lsp requires.
pub lsp_cltv_expiry_delta: u32,
pub lsp_cltv_expiry_delta: u16,
/// Trust model flag (default: false).
///
/// false => "LSP trusts client": LSP immediately (or as soon as safe) broadcasts the
Expand Down
Loading
Loading