package
0.18.4-beta.rc2
Repository: https://github.com/lightningnetwork/lnd.git
Documentation: pkg.go.dev
# Functions
NewErrMissingFeatureDep creates a new ErrMissingFeatureDep error.
NewErrUnknownRequired initializes an ErrUnknownRequired with the unknown feature bits.
NewManager creates a new feature Manager, applying any custom modifications to its feature sets before returning.
ValidateDeps asserts that a feature vector sets all features and their transitive dependencies properly.
ValidateRequired returns an error if the feature vector contains a non-zero number of unknown, required feature bits.
# Constants
SetInit identifies features that should be sent in an Init message to a remote peer.
SetInvoice identifies features that should be advertised on invoices generated by the daemon.
SetInvoiceAmp identifies the features that should be advertised on AMP invoices generated by the daemon.
SetLegacyGlobal identifies features that should be set in the legacy GlobalFeatures field of an Init message, which maintains backwards compatibility with nodes that haven't implemented flat features.
SetNodeAnn identifies features that should be advertised on node announcements.
# Variables
ErrFeatureConfigured is returned if an attempt is made to unset a feature that was configured at startup.
ErrUnknownSet is returned if a proposed feature vector contains a set that is unknown to LND.
# Structs
Config houses any runtime modifications to the default set descriptors.
ErrMissingFeatureDep is an error signaling that a transitive dependency in a feature vector is not set properly.
ErrUnknownRequired signals that a feature vector requires certain features that our node is unaware of or does not implement.
Manager is responsible for generating feature vectors for different requested feature sets.
# Type aliases
Set is an enum identifying various feature sets, which separates the single feature namespace into distinct categories depending what context a feature vector is being used.