multi: Update lnd to use new feature vector API.
This commit is contained in:
1 parent
af49752d4d
commit
9fd77a6e40
16 files changed
+49
-63
No files matched your search
@@ -131,6 +131,9 @@ func newServer(listenAddrs []string, chanDB *channeldb.DB, cc *chainControl,
|
||||
}
|
||||
}
|
||||
|
||||
globalFeatures := lnwire.NewRawFeatureVector()
|
||||
localFeatures := lnwire.NewRawFeatureVector(lnwire.InitialRoutingSync)
|
||||
|
||||
serializedPubKey := privKey.PubKey().SerializeCompressed()
|
||||
s := &server{
|
||||
chanDB: chanDB,
|
||||
@@ -159,8 +162,10 @@ func newServer(listenAddrs []string, chanDB *channeldb.DB, cc *chainControl,
|
||||
outboundPeers: make(map[string]*peer),
|
||||
peerConnectedListeners: make(map[string][]chan<- struct{}),
|
||||
|
||||
globalFeatures: globalFeatures,
|
||||
localFeatures: localFeatures,
|
||||
globalFeatures: lnwire.NewFeatureVector(globalFeatures,
|
||||
lnwire.GlobalFeatures),
|
||||
localFeatures: lnwire.NewFeatureVector(localFeatures,
|
||||
lnwire.LocalFeatures),
|
||||
|
||||
quit: make(chan struct{}),
|
||||
}
|
||||
@@ -234,7 +239,7 @@ func newServer(listenAddrs []string, chanDB *channeldb.DB, cc *chainControl,
|
||||
Addresses: selfAddrs,
|
||||
PubKey: privKey.PubKey(),
|
||||
Alias: alias.String(),
|
||||
Features: globalFeatures,
|
||||
Features: s.globalFeatures,
|
||||
}
|
||||
|
||||
// If our information has changed since our last boot, then we'll
|
||||
@@ -247,7 +252,7 @@ func newServer(listenAddrs []string, chanDB *channeldb.DB, cc *chainControl,
|
||||
Addresses: selfNode.Addresses,
|
||||
NodeID: selfNode.PubKey,
|
||||
Alias: alias,
|
||||
Features: selfNode.Features,
|
||||
Features: selfNode.Features.RawFeatureVector,
|
||||
}
|
||||
selfNode.AuthSig, err = discovery.SignAnnouncement(s.nodeSigner,
|
||||
s.identityPriv.PubKey(), nodeAnn,
|
||||
|
||||
Reference in new issue
Block a user