diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2022-07-18 13:28:40 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-12-12 11:48:30 +0100 |
commit | 043b9de59aec88ae5e29daac7dc2a8b51a9414ce (patch) | |
tree | 7f589d495a380d93040ca9b7aabab3862a29d746 /src/test/fuzz/netaddress.cpp | |
parent | 6061eb6564105ad54703a7cf3282590d0e1a7f28 (diff) | |
download | bitcoin-043b9de59aec88ae5e29daac7dc2a8b51a9414ce.tar.xz |
scripted-diff: rename ToStringIP[Port]() to ToStringAddr[Port]()
"IP" stands for "Internet Protocol".
"IP address" is sometimes shortened to just "IP" or "address".
However, Tor or I2P addresses are not "IP addresses", nor "IPs".
Thus, use "Addr" instead of "IP" for addresses that could be IP, Tor or
I2P addresses:
`CService::ToStringIPPort()` -> `CService::ToStringAddrPort()`
`CNetAddr::ToStringIP()` -> `CNetAddr::ToStringAddr()`
-BEGIN VERIFY SCRIPT-
sed -i 's/ToStringIPPort/ToStringAddrPort/g' -- $(git grep -l ToStringIPPort src)
sed -i 's/ToStringIP/ToStringAddr/g' -- $(git grep -l ToStringIP src)
-END VERIFY SCRIPT-
Diffstat (limited to 'src/test/fuzz/netaddress.cpp')
-rw-r--r-- | src/test/fuzz/netaddress.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/netaddress.cpp b/src/test/fuzz/netaddress.cpp index 2022f16a48..d71bbcf812 100644 --- a/src/test/fuzz/netaddress.cpp +++ b/src/test/fuzz/netaddress.cpp @@ -71,7 +71,7 @@ FUZZ_TARGET(netaddress) } (void)net_addr.IsValid(); (void)net_addr.ToString(); - (void)net_addr.ToStringIP(); + (void)net_addr.ToStringAddr(); const CSubNet sub_net{net_addr, fuzzed_data_provider.ConsumeIntegral<uint8_t>()}; (void)sub_net.IsValid(); @@ -81,7 +81,7 @@ FUZZ_TARGET(netaddress) (void)service.GetKey(); (void)service.GetPort(); (void)service.ToString(); - (void)service.ToStringIPPort(); + (void)service.ToStringAddrPort(); (void)service.ToStringPort(); (void)CServiceHash()(service); (void)CServiceHash(0, 0)(service); |