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

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-02-21 01:25:05 -08:00
1 parent 4d7ca825d4
commit ae15a193e2
7 files changed
+125 -103

No files matched your search

+6 -8
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{})