diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-09-14 10:20:49 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-09-14 10:25:26 +1000 |
commit | fb6a2ab63e310d8b600352ef41aab6dafccfbff0 (patch) | |
tree | ec54f79acab39ca2d689956610f62a08f6cfba2f /src/test/addrman_tests.cpp | |
parent | 5e5c8f86b60a8018e8801fb44bbe56ce97d9deef (diff) | |
download | bitcoin-fb6a2ab63e310d8b600352ef41aab6dafccfbff0.tar.xz |
scripted-diff: use SER_PARAMS_OPFUNC
-BEGIN VERIFY SCRIPT-
sed -i 's/WithParams(\(CAddress::V[12]_[A-Z]*\) *, */\1(/g' $(git grep -l 'WithParams' src/)
sed -i 's/WithParams(\(CNetAddr::V[12]\) *, */\1(/g' $(git grep -l 'WithParams' src/)
sed -i 's@\(CNetAddr::V1.CService{}.*\) //@\1 //@' src/test/util/net.cpp
-END VERIFY SCRIPT-
Diffstat (limited to 'src/test/addrman_tests.cpp')
-rw-r--r-- | src/test/addrman_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp index 941018a820..b01ba81c5f 100644 --- a/src/test/addrman_tests.cpp +++ b/src/test/addrman_tests.cpp @@ -1019,7 +1019,7 @@ static auto MakeCorruptPeersDat() std::optional<CNetAddr> resolved{LookupHost("252.2.2.2", false)}; BOOST_REQUIRE(resolved.has_value()); AddrInfo info = AddrInfo(addr, resolved.value()); - s << WithParams(CAddress::V1_DISK, info); + s << CAddress::V1_DISK(info); return s; } |