mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
watchtower/wtwire/features: remove local/global feature names...
in favor of a universal FeatureNames index.
This commit is contained in:
parent
40df51eaaa
commit
4c7111256e
2 changed files with 4 additions and 8 deletions
|
@ -306,7 +306,7 @@ func (s *Server) handleInit(localInit, remoteInit *wtwire.Init) error {
|
|||
}
|
||||
|
||||
remoteConnFeatures := lnwire.NewFeatureVector(
|
||||
remoteInit.ConnFeatures, wtwire.LocalFeatures,
|
||||
remoteInit.ConnFeatures, wtwire.FeatureNames,
|
||||
)
|
||||
|
||||
unknownLocalFeatures := remoteConnFeatures.UnknownRequiredFeatures()
|
||||
|
|
|
@ -2,13 +2,9 @@ package wtwire
|
|||
|
||||
import "github.com/lightningnetwork/lnd/lnwire"
|
||||
|
||||
// GlobalFeatures holds the globally advertised feature bits understood by
|
||||
// watchtower implementations.
|
||||
var GlobalFeatures map[lnwire.FeatureBit]string
|
||||
|
||||
// LocalFeatures holds the locally advertised feature bits understood by
|
||||
// watchtower implementations.
|
||||
var LocalFeatures = map[lnwire.FeatureBit]string{
|
||||
// FeatureNames holds a mapping from each feature bit understood by this
|
||||
// implementation to its common name.
|
||||
var FeatureNames = map[lnwire.FeatureBit]string{
|
||||
WtSessionsRequired: "wt-sessions",
|
||||
WtSessionsOptional: "wt-sessions",
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue