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)        |
This commit is contained in:
niftynei 2021-03-11 18:22:50 -06:00 committed by Rusty Russell
parent 6dae0118f9
commit 2baa24801e

View File

@ -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))));