mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 00:12:40 +02:00
lnwire+features: transition to the user friendly list of features
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
4d7ca825d4
commit
ae15a193e2
14
features.go
14
features.go
@@ -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{})
|
||||
|
Reference in New Issue
Block a user