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 dummyCAddressfromCService, so useCServiceinstead. -
GetBindAddress()only needs to returnCService. -
CNode::addrBindonly needs to beCService.