Versions in this module Expand all Collapse all v0 v0.0.3 Sep 11, 2024 Changes in this version + var ErrFeatureConfigured = errors.New("can't unset configured feature") + var ErrUnknownSet = errors.New("unknown feature bit set") + func ValidateDeps(fv *lnwire.FeatureVector) error + func ValidateRequired(fv *lnwire.FeatureVector) error + type Config struct + CustomFeatures map[Set][]lnwire.FeatureBit + NoAnchors bool + NoAnySegwit bool + NoKeysend bool + NoOptionScidAlias bool + NoScriptEnforcementLease bool + NoStaticRemoteKey bool + NoTLVOnion bool + NoTaprootChans bool + NoWumbo bool + NoZeroConf bool + type ErrMissingFeatureDep struct + func NewErrMissingFeatureDep(dep lnwire.FeatureBit) ErrMissingFeatureDep + func (e ErrMissingFeatureDep) Error() string + type ErrUnknownRequired struct + func NewErrUnknownRequired(unknown []lnwire.FeatureBit) ErrUnknownRequired + func (e ErrUnknownRequired) Error() string + type Manager struct + func NewManager(cfg Config) (*Manager, error) + func (m *Manager) Get(set Set) *lnwire.FeatureVector + func (m *Manager) GetRaw(set Set) *lnwire.RawFeatureVector + func (m *Manager) ListSets() []Set + func (m *Manager) UpdateFeatureSets(updates map[Set]*lnwire.RawFeatureVector) error + type Set uint8 + const SetInit + const SetInvoice + const SetInvoiceAmp + const SetLegacyGlobal + const SetNodeAnn + func (s Set) Maximum() lnwire.FeatureBit + func (s Set) String() string