Return the expected node features hexstring for this configuration
(wumbo_channels=False, extra=[])
| 58 | # With the addition of the keysend plugin, we now send a different set of |
| 59 | # features for the 'node' and the 'peer' feature sets |
| 60 | def expected_node_features(wumbo_channels=False, extra=[]): |
| 61 | """Return the expected node features hexstring for this configuration""" |
| 62 | features = [1, 5, 7, 8, 11, 13, 14, 17, 27, 45, 47, 51, 55] |
| 63 | if EXPERIMENTAL_FEATURES: |
| 64 | # OPT_ONION_MESSAGES |
| 65 | features += [39] |
| 66 | # option_anchor_outputs |
| 67 | features += [21] |
| 68 | # option_quiesce |
| 69 | features += [35] |
| 70 | if wumbo_channels: |
| 71 | features += [19] |
| 72 | if EXPERIMENTAL_DUAL_FUND: |
| 73 | # option_anchor_outputs |
| 74 | features += [21] |
| 75 | # option_dual_fund |
| 76 | features += [29] |
| 77 | return hex_bits(features + extra) |
| 78 | |
| 79 | |
| 80 | def expected_channel_features(wumbo_channels=False, extra=[]): |