lnd: revert usage of default port in connmgr persistent connections

This commit reverts a prior commit as it broke the integration tests
based on the assumption that all peers use the default port within the
network. The issue which was attempted to be fixed will be remedied
with a patch to the connmgr that allows a caller to cancel a persistent
connection that has failed.
This commit is contained in:
Olaoluwa Osuntokun 2017-01-22 15:58:51 -08:00
parent de70175be6
commit eb73d14a92
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -206,7 +206,6 @@ func newServer(listenAddrs []string, notifier chainntnfs.ChainNotifier,
for _, node := range linkNodes {
// Create a wrapper address which couples the IP and the pubkey
// so the brontide authenticated connection can be established.
node.Addresses[0].Port = defaultPeerPort
lnAddr := &lnwire.NetAddress{
IdentityKey: node.IdentityPub,
Address: node.Addresses[0],