bolt: Reflect the zeroconf featurebits in code

This commit is contained in:
Christian Decker
2022-04-14 14:35:39 +02:00
parent 185cd81be4
commit e4511452ac
5 changed files with 51 additions and 4 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]
features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 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, 55]
features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 47, 51, 55]
if EXPERIMENTAL_FEATURES:
# OPT_ONION_MESSAGES
features += [39]