lnwire/features: add EmptyFeatureVector constructor

This commit is contained in:
Conner Fromknecht 2019-12-18 23:52:44 -08:00
parent f5b1d40b9a
commit 9025a30f5d
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -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