mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +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:
@@ -201,6 +201,10 @@ struct channel_type **channel_upgradable_types(const tal_t *ctx,
|
|||||||
struct channel_type *channel_desired_type(const tal_t *ctx,
|
struct channel_type *channel_desired_type(const tal_t *ctx,
|
||||||
const struct channel *channel)
|
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 */
|
/* For now, we just want option_static_remotekey */
|
||||||
return type_static_remotekey(ctx);
|
return type_static_remotekey(ctx);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user