From 83e581b12a2cbd3f3a60c69d2dbbd3f442a6d530 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 10 Sep 2021 11:44:23 +0930 Subject: [PATCH] lightningd: print out support for channel_types in --list-features. It's not a separate option, but lnprototest needs it to know to expect the tlvs. Signed-off-by: Rusty Russell --- lightningd/options.c | 3 +++ tests/test_misc.py | 1 + 2 files changed, 4 insertions(+) diff --git a/lightningd/options.c b/lightningd/options.c index aff8b090b..a6fae5f62 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -806,6 +806,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_type\n"); +#endif exit(0); } diff --git a/tests/test_misc.py b/tests/test_misc.py index 94282291e..ec274dc8e 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1924,6 +1924,7 @@ def test_list_features_only(node_factory): expected += ['option_anchor_outputs/odd'] expected += ['option_shutdown_anysegwit/odd'] expected += ['option_onion_messages/odd'] + expected += ['supports_open_accept_channel_type'] else: expected += ['option_shutdown_anysegwit/odd'] assert features == expected