lnwire+features: transition to the user friendly list of features

This commit is contained in:
Andrey Samokhvalov
2017-02-17 17:28:11 +03:00
committed by Olaoluwa Osuntokun
parent 4d7ca825d4
commit ae15a193e2
7 changed files with 125 additions and 103 deletions

View File

@@ -2,12 +2,10 @@ package main
import "github.com/lightningnetwork/lnd/lnwire"
// globalFeaturesMap is a map which binds the name of the global feature with it
// index. The index is just an order of the feature and the final binary
// representation of feature vector is determined by decode function.
var globalFeaturesMap = lnwire.FeaturesMap{}
// globalFeatures feature vector which affects HTLCs and thus are also
// advertised to other nodes.
var globalFeatures = lnwire.NewFeatureVector([]lnwire.Feature{})
// localFeaturesMap is a map which binds the name of the local feature with it
// index. The index is just an order of the feature and the final binary
// representation of feature vector is determined by decode function.
var localFeaturesMap = lnwire.FeaturesMap{}
// localFeatures is an feature vector which represent the features which
// only affect the protocol between these two nodes.
var localFeatures = lnwire.NewFeatureVector([]lnwire.Feature{})