Skip to content

Commit 2baa248

Browse files
niftyneirustyrussell
authored andcommitted
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) |
1 parent 6dae011 commit 2baa248

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightningd/options.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,10 @@ static char *opt_set_wumbo(struct lightningd *ld)
800800

801801
static char *opt_set_dual_fund(struct lightningd *ld)
802802
{
803+
/* Dual funding implies anchor outputs */
804+
feature_set_or(ld->our_features,
805+
take(feature_set_for_feature(NULL,
806+
OPTIONAL_FEATURE(OPT_ANCHOR_OUTPUTS))));
803807
feature_set_or(ld->our_features,
804808
take(feature_set_for_feature(NULL,
805809
OPTIONAL_FEATURE(OPT_DUAL_FUND))));

0 commit comments

Comments
 (0)