Skip to content

Commit

Permalink
lightningd: print out support for channel_types in --list-features.
Browse files Browse the repository at this point in the history
It's not a separate option, but lnprototest needs it to know to expect
the tlvs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jul 3, 2021
1 parent 77bd5fc commit 2c138ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightningd/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,9 @@ static char *list_features_and_exit(struct lightningd *ld)
const char **features = list_supported_features(tmpctx, ld->our_features);
for (size_t i = 0; i < tal_count(features); i++)
printf("%s\n", features[i]);
#if EXPERIMENTAL_FEATURES
printf("supports_open_accept_channel_types\n");
#endif
exit(0);
}

Expand Down

0 comments on commit 2c138ea

Please sign in to comment.