Skip to content

Conversation

@benthecarman
Copy link
Collaborator

We had this in the proto files but was not hooked up on the server side or on the cli. This adds it on both ends

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Dec 10, 2025

👋 I see @tnull was un-assigned.
If you'd like another reviewer assignment, please click here.

@tnull tnull requested review from tnull and removed request for wpaulino December 10, 2025 09:07
@tnull
Copy link
Collaborator

tnull commented Dec 10, 2025

We had this in the proto files but was not hooked up on the server side or on the cli. This adds it on both ends

Hmm, I think context might be lightningdevkit/ldk-node#385 / #16 (comment). Do you think it's fine to move ahead as-is now, or do we really need ldk-node#385? If not, can we close the latter for now?

@benthecarman
Copy link
Collaborator Author

I saw that todo but it seemed separate. That is for updating the channel config, not setting it on open

Comment on lines 106 to 127
#[arg(long, help = "Forwarding fee proportional (in millionths of a satoshi)")]
forwarding_fee_proportional_millionths: Option<u32>,
#[arg(long, help = "Forwarding fee base (in milli-satoshi)")]
forwarding_fee_base_msat: Option<u32>,
#[arg(long, help = "CLTV expiry delta")]
cltv_expiry_delta: Option<u32>,
#[arg(long, help = "Force close avoidance max fee (in satoshis)")]
force_close_avoidance_max_fee_satoshis: Option<u64>,
#[arg(long, help = "Accept underpaying HTLCs")]
accept_underpaying_htlcs: Option<bool>,
#[arg(
long,
help = "Max dust HTLC exposure as fixed limit (in milli-satoshi)",
conflicts_with = "max_dust_htlc_fee_rate_multiplier"
)]
max_dust_htlc_fixed_limit_msat: Option<u64>,
#[arg(
long,
help = "Max dust HTLC exposure as fee rate multiplier",
conflicts_with = "max_dust_htlc_fixed_limit_msat"
)]
max_dust_htlc_fee_rate_multiplier: Option<u64>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Some of these options could really use some more documentation, but at the same time, I wouldn't expect users to set these in most cases. Maybe we just keep the forwarding specific ones for now and revisit the others if there's interest from users?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added more docs and removed some of the options that doesn't really make sense for users

@tnull tnull removed their request for review December 11, 2025 13:42
These were available on the server side but not in the cli. Not all
options are given as they aren't likely to be used and more likely to be
confusing to users.
@wpaulino wpaulino merged commit 0d02e50 into lightningdevkit:main Dec 11, 2025
7 checks passed
@benthecarman benthecarman deleted the open-channel-cfg branch December 11, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants