(features)
| 26 | |
| 27 | |
| 28 | def 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 | |
| 38 | def expected_peer_features(wumbo_channels=False, extra=[]): |
no outgoing calls
no test coverage detected