Skip to content

Commit

Permalink
fixup! Added possability to configer max_concurrent_htlcs value for o…
Browse files Browse the repository at this point in the history
…ur 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 5be3fa8 commit d959421
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lightningd/options.c
Original file line number Diff line number Diff line change
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 d959421

Please sign in to comment.