Using CAddress
when only CService
or CNetAddr
is needed is excessive and confusing. Fix those occurrences to use the class they need:
-
CConnman::CalculateKeyedNetGroup()
needsCNetAddr
, notCAddress
, thus change its argument. -
Both callers of
CConnman::CreateNodeFromAcceptedSocket()
create a dummyCAddress
fromCService
, so useCService
instead. -
GetBindAddress()
only needs to returnCService
. -
CNode::addrBind
only needs to beCService
.