From eaa2ff23f1f2cd74dca40c6f706721083aed3cf2 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 21 Jun 2021 12:24:44 +0930 Subject: [PATCH] EXPERIMENTAL_FEATURES: don't offer to downgrade anchor outputs! We don't support this, even if other side allowed it (which we certainly don't). Signed-off-by: Rusty Russell --- common/initial_channel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/initial_channel.c b/common/initial_channel.c index 8270f4a1b..fb01cd175 100644 --- a/common/initial_channel.c +++ b/common/initial_channel.c @@ -201,6 +201,10 @@ struct channel_type **channel_upgradable_types(const tal_t *ctx, struct channel_type *channel_desired_type(const tal_t *ctx, const struct channel *channel) { + /* We don't actually want to downgrade anchors! */ + if (channel->option_anchor_outputs) + return type_anchor_outputs(ctx); + /* For now, we just want option_static_remotekey */ return type_static_remotekey(ctx); }