From 2baa24801e741c82afe021861b6e8520fd8cc752 Mon Sep 17 00:00:00 2001 From: niftynei Date: Thu, 11 Mar 2021 18:22:50 -0600 Subject: [PATCH] dual-funding: implies anchor outputs. | 28/29 | `option_dual_fund` | Use v2 of channel open, enables dual funding | IN9 | `option_anchor_outputs`, `option_static_remotekey` | [BOLT #2](02-peer-protocol.md) | --- lightningd/options.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lightningd/options.c b/lightningd/options.c index 8db087b45..f33a77d74 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -800,6 +800,10 @@ static char *opt_set_wumbo(struct lightningd *ld) static char *opt_set_dual_fund(struct lightningd *ld) { + /* Dual funding implies anchor outputs */ + feature_set_or(ld->our_features, + take(feature_set_for_feature(NULL, + OPTIONAL_FEATURE(OPT_ANCHOR_OUTPUTS)))); feature_set_or(ld->our_features, take(feature_set_for_feature(NULL, OPTIONAL_FEATURE(OPT_DUAL_FUND))));