lightningd: set the channel_type feature.

AFAICT we should have been doing this since we started sending and
receiving it, but didn't.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Protocol: we now advertize the `option_channel_type` feature (which we actually supported since v0.10.2)
This commit is contained in:
Rusty Russell
2022-07-23 16:25:48 +09:30
committed by neil saitug
parent d5d4e7b019
commit 80a6d9b58e
3 changed files with 5 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ def hex_bits(features):
def expected_peer_features(wumbo_channels=False, extra=[]):
"""Return the expected peer features hexstring for this configuration"""
features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 47, 51]
features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 45, 47, 51]
if EXPERIMENTAL_FEATURES:
# OPT_ONION_MESSAGES
features += [39]
@@ -59,7 +59,7 @@ def expected_peer_features(wumbo_channels=False, extra=[]):
# features for the 'node' and the 'peer' feature sets
def expected_node_features(wumbo_channels=False, extra=[]):
"""Return the expected node features hexstring for this configuration"""
features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 47, 51, 55]
features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 45, 47, 51, 55]
if EXPERIMENTAL_FEATURES:
# OPT_ONION_MESSAGES
features += [39]