@@ -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+
12531267static 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