In this commit the feature maps were added which which binds the name of the global feature with it index in feature vector. The index is just an order of the feature and the final binary representation of feature vector is determined by decode function. This maps helps to operate with feature by their names rather than their indexes.
14 lines
599 B
Go
14 lines
599 B
Go
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{}
|
|
|
|
// 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{}
|