MCPcopy Create free account
hub / github.com/ElementsProject/lightning / expected_node_features

Function expected_node_features

tests/utils.py:60–77  ·  view source on GitHub ↗

Return the expected node features hexstring for this configuration

(wumbo_channels=False, extra=[])

Source from the content-addressed store, hash-verified

58# With the addition of the keysend plugin, we now send a different set of
59# features for the 'node' and the 'peer' feature sets
60def expected_node_features(wumbo_channels=False, extra=[]):
61 """Return the expected node features hexstring for this configuration"""
62 features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 45, 47, 51, 55]
63 if EXPERIMENTAL_FEATURES:
64 # OPT_ONION_MESSAGES
65 features += [39]
66 # option_anchor_outputs
67 features += [21]
68 # option_quiesce
69 features += [35]
70 if wumbo_channels:
71 features += [19]
72 if EXPERIMENTAL_DUAL_FUND:
73 # option_anchor_outputs
74 features += [21]
75 # option_dual_fund
76 features += [29]
77 return hex_bits(features + extra)
78
79
80def expected_channel_features(wumbo_channels=False, extra=[]):

Callers 4

test_peerinfoFunction · 0.90
test_node_reannounceFunction · 0.90
test_feature_setFunction · 0.90

Calls 1

hex_bitsFunction · 0.85

Tested by 4

test_peerinfoFunction · 0.72
test_node_reannounceFunction · 0.72
test_feature_setFunction · 0.72