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

Function expected_peer_features

tests/utils.py:42–51  ·  view source on GitHub ↗

Return the expected peer features hexstring for this configuration

(extra=[])

Source from the content-addressed store, hash-verified

40
41
42def expected_peer_features(extra=[]):
43 """Return the expected peer features hexstring for this configuration"""
44 features = [0, 5, 7, 8, 11, 12, 14, 17, 19, 25, 27, 35, 39, 43, 44, 47, 51, 63]
45 if EXPERIMENTAL_DUAL_FUND:
46 # option_dual_fund
47 features += [29]
48 if TEST_NETWORK != 'liquid-regtest':
49 # Anchors, except for elements
50 features += [23]
51 return hex_bits(features + extra)
52
53
54# With the addition of the keysend plugin, we now send a different set of

Callers 6

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 6

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