Skip to content

Commit d9980c2

Browse files
committed
fixup! splice: Remove experiemental splicing feature
1 parent 878f6f3 commit d9980c2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

lightningd/options.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,20 @@ static char *opt_set_dual_fund(struct lightningd *ld)
12501250
return NULL;
12511251
}
12521252

1253+
static char *opt_set_splicing(struct lightningd *ld)
1254+
{
1255+
/* Show deprecation warning */
1256+
if (!opt_deprecated_ok(ld, "experimental_splicing", NULL,
1257+
"v26.04", "v27.04"))
1258+
return "--experimental-splicing is now enabled by default"
1259+
" enabled by default";
1260+
1261+
feature_set_or(ld->our_features,
1262+
take(feature_set_for_feature(NULL,
1263+
OPTIONAL_FEATURE(OPT_SPLICE))));
1264+
return NULL;
1265+
}
1266+
12531267
static char *opt_set_shutdown_wrong_funding(struct lightningd *ld)
12541268
{
12551269
feature_set_or(ld->our_features,
@@ -1478,6 +1492,13 @@ static void register_opts(struct lightningd *ld)
14781492
" and allow peers to establish channels"
14791493
" via v2 channel open protocol.");
14801494

1495+
/* Deprecated: splicing is on by default now */
1496+
opt_register_early_noarg("--experimental-splicing",
1497+
opt_set_splicing, ld,
1498+
"experimental: Enables the ability to resize"
1499+
" channels using splicing");
1500+
1501+
14811502
/* This affects our features, so set early. */
14821503
opt_register_early_noarg("--experimental-shutdown-wrong-funding",
14831504
opt_set_shutdown_wrong_funding, ld,

0 commit comments

Comments
 (0)