Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: e1b2ceca8071dc391a471e9f69154fe1e8c17032
      
https://github.com/btcsuite/btcd/commit/e1b2ceca8071dc391a471e9f69154fe1e8c17032
  Author: dskloet <dskl...@gmail.com>
  Date:   2016-11-21 (Mon, 21 Nov 2016)

  Changed paths:
    M addrmgr/addrmanager.go
    M addrmgr/addrmanager_test.go
    M server.go

  Log Message:
  -----------
  addrmgr: Remove unused param from GetAddress()

addrmgr.GetAddress() had a parameter `class string` originally intended
to support looking up addresses according to some type of filter such as
IPv4, IPv6, and only those which support specific wire.ServiceFlags
(full nodes, nodes that support bloom filters, nodes that support
segwit, etc). But currently the parameter is unused and also has an
inappropriate type `string`.

If it would ever be used, it's easy to add back and should then get an
appropriate type such as something that allows bitflags to be set so
that the caller could request combinations such as peers that support
IPv6, are full nodes, and support bloom filters.


Reply via email to