From 697c86cb8fdc786467e8f0989c2380deec619970 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 8 Aug 2019 11:30:20 +0930 Subject: [PATCH] fixup! Added possibility to configure max_concurrent_htlcs value for our channels. Eclaire has a default of 30 and I thought why not going with their value and while doing so make it configureable. --- lightningd/options.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lightningd/options.c b/lightningd/options.c index 0182e7fbd3b1..1647969e4d3c 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -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, @@ -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");