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

Function expected_peer_features

tests/utils.py:38–55  ·  view source on GitHub ↗

Return the expected peer features hexstring for this configuration

(wumbo_channels=False, extra=[])

Source from the content-addressed store, hash-verified

36
37
38def expected_peer_features(wumbo_channels=False, extra=[]):
39 """Return the expected peer features hexstring for this configuration"""
40 features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 45, 47, 51]
41 if EXPERIMENTAL_FEATURES:
42 # OPT_ONION_MESSAGES
43 features += [39]
44 # option_anchor_outputs
45 features += [21]
46 # option_quiesce
47 features += [35]
48 if wumbo_channels:
49 features += [19]
50 if EXPERIMENTAL_DUAL_FUND:
51 # option_anchor_outputs
52 features += [21]
53 # option_dual_fund
54 features += [29]
55 return hex_bits(features + extra)
56
57
58# With the addition of the keysend plugin, we now send a different set of

Callers 5

test_peerinfoFunction · 0.90
test_dataloss_protectionFunction · 0.90
test_wumbo_channelsFunction · 0.90
test_feature_setFunction · 0.90

Calls 1

hex_bitsFunction · 0.85

Tested by 5

test_peerinfoFunction · 0.72
test_dataloss_protectionFunction · 0.72
test_wumbo_channelsFunction · 0.72
test_feature_setFunction · 0.72