Module lnp::features[][src]

Structs

Type representing BOLT-11 invoice feature context.

Type representing channel_announcement message feature context.

Type representing init message feature context.

Flags are numbered from the least-significant bit, at bit 0 (i.e. 0x1, an even bit). They are generally assigned in pairs so that features can be introduced as optional (odd bits) and later upgraded to be compulsory (even bits), which will be refused by outdated nodes: see BOLT #1: The init Message.

Type representing node_announcement message feature context.

Error reporting unrecognized feature name

Enums

Feature-flags-related errors

Specific named feature flags

Errors from internal features inconsistency happening when a feature is present, but it’s required feature is not specified

Traits

Some features don’t make sense on a per-channels or per-node basis, so each feature defines how it is presented in those contexts. Some features may be required for opening a channel, but not a requirement for use of the channel, so the presentation of those features depends on the feature itself.