lnwire/features: add EmptyFeatureVector constructor
This commit is contained in:
parent
f5b1d40b9a
commit
9025a30f5d
@ -357,6 +357,11 @@ func NewFeatureVector(featureVector *RawFeatureVector,
|
||||
}
|
||||
}
|
||||
|
||||
// EmptyFeatureVector returns a feature vector with no bits set.
|
||||
func EmptyFeatureVector() *FeatureVector {
|
||||
return NewFeatureVector(nil, Features)
|
||||
}
|
||||
|
||||
// HasFeature returns whether a particular feature is included in the set. The
|
||||
// feature can be seen as set either if the bit is set directly OR the queried
|
||||
// bit has the same meaning as its corresponding even/odd bit, which is set
|
||||
|
Loading…
Reference in New Issue
Block a user