Skip to content

Commit 4359b73

Browse files
committed
lightningd: remove --max-locktime-blocks.
Changelog-Removed: Config: `max-locktime-blocks` (deprecated v24.05, disabled v25.02). Signed-off-by: Rusty Russell <[email protected]>
1 parent 40d319b commit 4359b73

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

doc/developers-guide/deprecations.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ hidden: false
1111
| rest-protocol.clnrest-prefix | Config | v23.11 | v24.11 | Autodetect where we need to rename `rest-protocol` to `clnrest-protocol` (added in v23.11) |
1212
| rest-host.clnrest-prefix | Config | v23.11 | v24.11 | Autodetect where we need to rename `rest-host` to `clnrest-host` (added in v23.11) |
1313
| rest-certs.clnrest-prefix | Config | v23.11 | v24.11 | Autodetect where we need to rename `rest-certs` to `clnrest-certs` (added in v23.11) |
14-
| max-locktime-blocks | Config | v24.05 | v24.11 | --max-locktime-blocks is now set to 2016 in the BOLT 4 spec |
1514
| commando-rune | Command | v23.08 | v25.02 | replaced with `lightning-createrune` |
1615
| commando-listrunes | Command | v23.08 | v25.02 | replaced with `lightning-showrunes` |
1716
| commando-blacklist | Command | v23.08 | v25.02 | replaced with `lightning-blacklistrune` |

lightningd/options.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -616,15 +616,6 @@ static char *opt_set_hsm_password(struct lightningd *ld)
616616
return NULL;
617617
}
618618

619-
static char *opt_set_max_htlc_cltv(const char *arg, struct lightningd *ld)
620-
{
621-
if (!opt_deprecated_ok(ld, "max-locktime-blocks", NULL,
622-
"v24.05", "v24.11"))
623-
return "--max-locktime-blocks has been deprecated (BOLT #4 says 2016)";
624-
625-
return opt_set_u32(arg, &ld->config.max_htlc_cltv);
626-
}
627-
628619
static char *opt_force_privkey(const char *optarg, struct lightningd *ld)
629620
{
630621
tal_free(ld->dev_force_privkey);
@@ -1498,8 +1489,6 @@ static void register_opts(struct lightningd *ld)
14981489
clnopt_witharg("--watchtime-blocks", OPT_SHOWINT, opt_set_u32, opt_show_u32,
14991490
&ld->config.locktime_blocks,
15001491
"Blocks before peer can unilaterally spend funds");
1501-
opt_register_arg("--max-locktime-blocks", opt_set_max_htlc_cltv, NULL,
1502-
ld, opt_hidden);
15031492
clnopt_witharg("--funding-confirms", OPT_SHOWINT, opt_set_u32, opt_show_u32,
15041493
&ld->config.funding_confirms,
15051494
"Confirmations required for funding transaction");

0 commit comments

Comments
 (0)