RGB-Tools / RGB-Tools/rgb-lightning-node

configurable max htlc in-flight limit (ldk #850) - ux implications for rgb dex swaps

Open
#108 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
50
Forks
48
Avg merge
8h 52m
Merged PRs (30d)
2

Description

hi @zoedberg

i ran into some ux friction points i'd love your guidance on.

with ldk's default max_inbound_htlc_value_in_flight_percent_of_channel sitting at 10% of channel capacity (made configurable via ChannelHandshakeConfig after rust-lightning - issue #850), users on a dex like kaleidoswap effectively can only swap up to ~10% of their channel in a single payment regardless of their actual balance.

right now the experience for a user hitting this ceiling is confusing, and at the end of it they either have to split their order or open a much larger channel just to accommodate a trade.

a few things i'd like your take on:

  • is there a plan to expose ChannelHandshakeConfig::max_inbound_htlc_value_in_flight_percent_of_channel as a configurable option in rln, or will it stay at the ldk?

  • if keeping it fixed, what are the concerns behind not raising it? (even to something like 20%) for rgb asset channels used primarily for swaps and not routing, the privacy trade-offs of a low in-flight cap feel less relevant. what are the concerns as for the limit here?

thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing ChannelHandshakeConfig in LDK and the configuration surface in rln, then read the linked rust-lightning issue #850. Done means documenting whether rln should expose the max in-flight HTLC percentage and explaining the implications for RGB asset channels and DEX swaps.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
payments
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.