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

Function hex_bits

tests/utils.py:28–35  ·  view source on GitHub ↗
(features)

Source from the content-addressed store, hash-verified

26
27
28def hex_bits(features):
29 # We always to full bytes
30 flen = (max(features + [0]) + 7) // 8 * 8
31 res = bitstring.BitArray(length=flen)
32 # Big endian sucketh.
33 for f in features:
34 res[flen - 1 - f] = 1
35 return res.hex
36
37
38def expected_peer_features(wumbo_channels=False, extra=[]):

Callers 3

expected_peer_featuresFunction · 0.85
expected_node_featuresFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected