channeld: BOLT update, no longer allow creation of old (experimental-only!) non-zero-fee anchor channels.

These were removed from the spec.

We still support existing ones, though we were the only implementation
which ever did, and only in experimental mode, so we should be able to
upgrade them and avoid a forced close, with a bit of engineering...

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-06-19 09:31:01 +09:30
parent b6d7ee1f11
commit 7d3d763b96
26 changed files with 63 additions and 140 deletions

View File

@@ -303,7 +303,7 @@ int main(int argc, char *argv[])
"Use option_static_remotekey generation rules");
opt_register_noarg("--option-anchor-outputs", opt_set_bool,
&option_anchor_outputs,
"Use option_anchor_outputs generation rules");
"Use option_anchors_zero_fee_htlc_tx generation rules");
opt_register_version();
opt_parse(&argc, argv, opt_log_stderr_exit);
@@ -391,7 +391,7 @@ int main(int argc, char *argv[])
derive_channel_id(&cid, &funding);
if (option_anchor_outputs)
channel_type = channel_type_anchor_outputs(NULL);
channel_type = channel_type_anchors_zero_fee_htlc(NULL);
else if (option_static_remotekey)
channel_type = channel_type_static_remotekey(NULL);
else