lnwire: add support for Features in NodeAnnouncement

Add support for Features in NodeAnnouncment according to spec.
This commit is contained in:
bryanvu authored and Olaoluwa Osuntokun committed 2017-03-29 12:03:43 -07:00
1 parent 3087bec4db
commit 085b7333cb
10 files changed
+145 -32

No files matched your search

+2 -2
View File
@@ -171,7 +171,8 @@ func newServer(listenAddrs []string, notifier chainntnfs.ChainNotifier,
Addresses: selfAddrs,
PubKey: privKey.PubKey(),
// TODO(roasbeef): make alias configurable
Alias: hex.EncodeToString(serializedPubKey[:10]),
Alias: hex.EncodeToString(serializedPubKey[:10]),
Features: globalFeatures,
}
if err := chanGraph.SetSourceNode(self); err != nil {
return nil, err
@@ -510,7 +511,6 @@ func (s *server) inboundPeerConnected(conn net.Conn) {
for _, connReq := range connReqs {
s.connMgr.Remove(connReq.ID())
}
delete(s.persistentConnReqs, pubStr)
}
s.pendingConnMtx.RUnlock()