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

Function expected_node_features

tests/utils.py:56–65  ·  view source on GitHub ↗

Return the expected node features hexstring for this configuration

(extra=[])

Source from the content-addressed store, hash-verified

54# With the addition of the keysend plugin, we now send a different set of
55# features for the 'node' and the 'peer' feature sets
56def expected_node_features(extra=[]):
57 """Return the expected node features hexstring for this configuration"""
58 features = [0, 5, 7, 8, 11, 12, 14, 17, 19, 25, 27, 35, 39, 43, 44, 47, 51, 55, 63]
59 if EXPERIMENTAL_DUAL_FUND:
60 # option_dual_fund
61 features += [29]
62 if TEST_NETWORK != 'liquid-regtest':
63 # Anchors, except for elements
64 features += [23]
65 return hex_bits(features + extra)
66
67
68def expected_channel_features(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