mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
b985cd774d
commit
83e581b12a
@@ -806,6 +806,9 @@ static char *list_features_and_exit(struct lightningd *ld)
|
|||||||
const char **features = list_supported_features(tmpctx, ld->our_features);
|
const char **features = list_supported_features(tmpctx, ld->our_features);
|
||||||
for (size_t i = 0; i < tal_count(features); i++)
|
for (size_t i = 0; i < tal_count(features); i++)
|
||||||
printf("%s\n", features[i]);
|
printf("%s\n", features[i]);
|
||||||
|
#if EXPERIMENTAL_FEATURES
|
||||||
|
printf("supports_open_accept_channel_type\n");
|
||||||
|
#endif
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1924,6 +1924,7 @@ def test_list_features_only(node_factory):
|
|||||||
expected += ['option_anchor_outputs/odd']
|
expected += ['option_anchor_outputs/odd']
|
||||||
expected += ['option_shutdown_anysegwit/odd']
|
expected += ['option_shutdown_anysegwit/odd']
|
||||||
expected += ['option_onion_messages/odd']
|
expected += ['option_onion_messages/odd']
|
||||||
|
expected += ['supports_open_accept_channel_type']
|
||||||
else:
|
else:
|
||||||
expected += ['option_shutdown_anysegwit/odd']
|
expected += ['option_shutdown_anysegwit/odd']
|
||||||
assert features == expected
|
assert features == expected
|
||||||
|
|||||||
Reference in New Issue
Block a user