Skip to content

Disable mpp flags in invoice creation if jit channel is required and consider available liquidity #9587

Merged
ecdsa merged 1 commit intospesmilo:masterfrom
f321x:jit-invoice-creation
Mar 4, 2025
Merged

Disable mpp flags in invoice creation if jit channel is required and consider available liquidity #9587
ecdsa merged 1 commit intospesmilo:masterfrom
f321x:jit-invoice-creation

Conversation

@f321x
Copy link
Copy Markdown
Member

@f321x f321x commented Feb 28, 2025

Considers the available inbound liquidity when deciding if the client requires a just-in-time channel to receive the requested amount. Also disables the MPP feature flags in the invoice if client requests a jit channel to prevent the LSP from opening multiple channels to it (one for each htlc).
Also makes the difference between the static scid alias we create if there is no existing channel and the "regular" scid aliases more clear by renaming two functions, so we don't call two different things 'scid alias'.
Required for #9584

…ck against available liquidity if we need a jit channel
@f321x f321x force-pushed the jit-invoice-creation branch from d611e8f to d62eb7a Compare March 4, 2025 14:24
@ecdsa ecdsa merged commit 1201b87 into spesmilo:master Mar 4, 2025
@f321x f321x deleted the jit-invoice-creation branch March 4, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants