peer: BestLocalAddress config option is no longer used.

This commit is contained in:
David Hill 2016-10-23 16:38:45 -04:00
parent a09d052f96
commit 0d508e6522
2 changed files with 0 additions and 4 deletions

View file

@ -196,9 +196,6 @@ type Config struct {
// reported. // reported.
NewestBlock HashFunc NewestBlock HashFunc
// BestLocalAddress returns the best local address for a given address.
BestLocalAddress AddrFunc
// HostToNetAddress returns the netaddress for the given host. This can be // HostToNetAddress returns the netaddress for the given host. This can be
// nil in which case the host will be parsed as an IP address. // nil in which case the host will be parsed as an IP address.
HostToNetAddress HostToNetAddrFunc HostToNetAddress HostToNetAddrFunc

View file

@ -1539,7 +1539,6 @@ func newPeerConfig(sp *serverPeer) *peer.Config {
OnAlert: nil, OnAlert: nil,
}, },
NewestBlock: sp.newestBlock, NewestBlock: sp.newestBlock,
BestLocalAddress: sp.server.addrManager.GetBestLocalAddress,
HostToNetAddress: sp.server.addrManager.HostToNetAddress, HostToNetAddress: sp.server.addrManager.HostToNetAddress,
Proxy: cfg.Proxy, Proxy: cfg.Proxy,
UserAgentName: userAgentName, UserAgentName: userAgentName,