mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
parent
35c8247b5f
commit
eaa2ff23f1
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue