From 9025a30f5d6d23cf6ca5dd6e8b8eba9d08842c96 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 18 Dec 2019 23:52:44 -0800 Subject: [PATCH] lnwire/features: add EmptyFeatureVector constructor --- lnwire/features.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lnwire/features.go b/lnwire/features.go index d2ffa136..0feb7627 100644 --- a/lnwire/features.go +++ b/lnwire/features.go @@ -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