Skip to content

Check large-channel support before LSPS1 orders - #1253

Open
elnafateh wants to merge 1 commit into
lightningdevkit:mainfrom
elnafateh:fix/lsps1-large-channel-support
Open

elnafateh wants to merge 1 commit into
lightningdevkit:mainfrom
elnafateh:fix/lsps1-large-channel-support

Conversation

@elnafateh

Copy link
Copy Markdown
Contributor

LSPS1 orders can request channels larger than 16,777,216 sat even when the local node does not support large channels. The LSP may accept and fund an order the client cannot use.

@ldk-reviews-bot

ldk-reviews-bot commented Nov 21, 2026 •

Copy link
Copy Markdown

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tnull tnull left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, but should we do the same on the LSP side? Although maybe that part could also happen in lightning-liquidity I assume?

@elnafateh

Copy link
Copy Markdown
Contributor Author

@tnull Fair point. We likely want both checks to guard each side. should we keep this PR client-side and handle the LSP-side check in lightning-liquidity?

@tnull

tnull commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

@tnull Fair point. We likely want both checks to guard each side. should we keep this PR client-side and handle the LSP-side check in lightning-liquidity?

I think it would make sense to add both directly to lightning-liquidity?

@elnafateh

Copy link
Copy Markdown
Contributor Author

@tnull Fair point. We likely want both checks to guard each side. should we keep this PR client-side and handle the LSP-side check in lightning-liquidity?

I think it would make sense to add both directly to lightning-liquidity?

Yes, both checks could live in lightning-liquidity, but client handler also needs the local wumbo capability.

@tnull

tnull commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

@tnull Fair point. We likely want both checks to guard each side. should we keep this PR client-side and handle the LSP-side check in lightning-liquidity?

I think it would make sense to add both directly to lightning-liquidity?

Yes, both checks could live in lightning-liquidity, but client handler also needs the local wumbo capability.

I don't think so? LiquidityManager also holds a reference to ChannelManger, no?

@elnafateh

Copy link
Copy Markdown
Contributor Author

@tnull Fair point. We likely want both checks to guard each side. should we keep this PR client-side and handle the LSP-side check in lightning-liquidity?

I think it would make sense to add both directly to lightning-liquidity?

Yes, both checks could live in lightning-liquidity, but client handler also needs the local wumbo capability.

I don't think so? LiquidityManager also holds a reference to ChannelManger, no?

Right, so we can derive wumbo support from LiquidityManager’s ChannelManager and pass it to the LSPS1 client handler?

@tnull

tnull commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

@tnull Fair point. We likely want both checks to guard each side. should we keep this PR client-side and handle the LSP-side check in lightning-liquidity?

I think it would make sense to add both directly to lightning-liquidity?

Yes, both checks could live in lightning-liquidity, but client handler also needs the local wumbo capability.

I don't think so? LiquidityManager also holds a reference to ChannelManger, no?

Right, so we can derive wumbo support from LiquidityManager’s ChannelManager and pass it to the LSPS1 client handler?

Yes, exactly. Or just forward the reference to the LSPS1 service handler, and it can then query ChannelManager when needed.

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.

3 participants