Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

f321x
Copy link
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
11 of 14 checks passed
@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