Skip to content

Commit

Permalink
fixup! Added possibility to configure max_concurrent_htlcs value for …
Browse files Browse the repository at this point in the history
…our channels. Eclaire has a default of 30 and I thought why not going with their value and while doing so make it configureable.
  • Loading branch information
rustyrussell authored and renepickhardt committed Aug 8, 2019
1 parent 384a69b commit 697c86c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lightningd/options.c
Expand Up @@ -457,6 +457,9 @@ static const struct config testnet_config = {
/* We offer to pay 5 times 2-block fee */
.commitment_fee_percent = 500,

/* Testnet blockspace is free. */
.max_concurrent_htlcs = 483,

/* Be aggressive on testnet. */
.cltv_expiry_delta = 6,
.cltv_final = 10,
Expand Down Expand Up @@ -941,7 +944,7 @@ static void register_opts(struct lightningd *ld)
"Microsatoshi fee for every satoshi in HTLC");
opt_register_arg("--max-concurrent-htlcs", opt_set_u32, opt_show_u32,
&ld->config.max_concurrent_htlcs,
"Number of HTLCs one channel can handle concurrently. Should be between 1 and 483 (default 30)");
"Number of HTLCs one channel can handle concurrently. Should be between 1 and 483");
opt_register_arg("--min-capacity-sat", opt_set_u64, opt_show_u64,
&ld->config.min_capacity_sat,
"Minimum capacity in satoshis for accepting channels");
Expand Down

0 comments on commit 697c86c

Please sign in to comment.