Return the expected peer features hexstring for this configuration
(wumbo_channels=False, extra=[])
| 36 | |
| 37 | |
| 38 | def 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 |