Before this PR we had the somewhat confusing combination of methods:
CNetAddr::ToStringIP()
CNetAddr::ToString()
(duplicate of the above)
CService::ToStringIPPort()
CService::ToString()
(duplicate of the above, overrides a non-virtual method from CNetAddr
)
CService::ToStringPort()
Avoid overriding non-virtual methods.
“IP” stands for “Internet Protocol” and while sometimes “IP addresses” are called just “IPs”, it is incorrect to call Tor or I2P addresses “IPs”. Thus use “Addr” instead of “IP”.
Change the above to:
CNetAddr::ToStringAddr()
CService::ToStringAddrPort()
The changes touch a lot of files, but are mostly mechanical.