Table of Contents

Enum Feature

Namespace
NLightning.Bolts.BOLT9
Assembly
NLightning.Bolts.dll

The features that can be set on a node as defined on https://github.com/lightning/bolts/blob/master/09-features.md

public enum Feature

Fields

BASIC_MPP = 17

16 is for the compulsory bit, 17 is for the optional bit.

GOSSIP_QUERIES = 7

6 is for the compulsory bit, 7 is for the optional bit.

GOSSIP_QUERIES_EX = 11

10 is for the compulsory bit, 11 is for the optional bit.

INITIAL_ROUTING_SYNC = 3

3 is for the optional bit.

OPTION_ANCHORS_ZERO_FEE_HTLC_TX = 23

22 is for the compulsory bit, 23 is for the optional bit.

OPTION_ANCHOR_OUTPUTS = 21

20 is for the compulsory bit, 21 is for the optional bit.

OPTION_CHANNEL_TYPE = 45

44 is for the compulsory bit, 45 is for the optional bit.

OPTION_DATA_LOSS_PROTECT = 1

0 is for the compulsory bit, 1 is for the optional bit.

OPTION_DUAL_FUND = 29

28 is for the compulsory bit, 29 is for the optional bit.

OPTION_ONION_MESSAGES = 39

38 is for the compulsory bit, 39 is for the optional bit.

OPTION_PAYMENT_METADATA = 49

48 is for the compulsory bit, 49 is for the optional bit.

OPTION_ROUTE_BLINDING = 25

24 is for the compulsory bit, 25 is for the optional bit.

OPTION_SCID_ALIAS = 47

46 is for the compulsory bit, 47 is for the optional bit.

OPTION_SHUTDOWN_ANY_SEGWIT = 27

26 is for the compulsory bit, 27 is for the optional bit.

OPTION_STATIC_REMOTE_KEY = 13

12 is for the compulsory bit, 13 is for the optional bit.

OPTION_SUPPORT_LARGE_CHANNEL = 19

18 is for the compulsory bit, 19 is for the optional bit.

OPTION_UPFRONT_SHUTDOWN_SCRIPT = 5

4 is for the compulsory bit, 5 is for the optional bit.

OPTION_ZEROCONF = 51

50 is for the compulsory bit, 51 is for the optional bit.

PAYMENT_SECRET = 15

14 is for the compulsory bit, 15 is for the optional bit.

VAR_ONION_OPTIN = 9

8 is for the compulsory bit, 9 is for the optional bit.

Remarks

The values here represents the ODD (OPTIONAL) bit position in the feature flags.