RGB-Tools / RGB-Tools/rgb-lightning-node
configurable max htlc in-flight limit (ldk #850) - ux implications for rgb dex swaps
Nobody has claimed this yet.
- 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_channelas 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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