multi: Update lnd to use new feature vector API.
This commit is contained in:
1 parent
af49752d4d
commit
9fd77a6e40
16 files changed
+49
-63
No files matched your search
+5
-1
@@ -170,10 +170,14 @@ type FeatureVector struct {
|
||||
}
|
||||
|
||||
// NewFeatureVector constructs a new FeatureVector from a raw feature vector and
|
||||
// mapping of feature definitions.
|
||||
// mapping of feature definitions. If the feature vector argument is nil, a new
|
||||
// one will be constructed with no enabled features.
|
||||
func NewFeatureVector(featureVector *RawFeatureVector,
|
||||
featureNames map[FeatureBit]string) *FeatureVector {
|
||||
|
||||
if featureVector == nil {
|
||||
featureVector = NewRawFeatureVector()
|
||||
}
|
||||
return &FeatureVector{
|
||||
RawFeatureVector: featureVector,
|
||||
featureNames: featureNames,
|
||||
|
||||
Reference in new issue
Block a user