diff options
author | John Newbery <john@johnnewbery.com> | 2020-07-09 07:42:11 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-02-18 09:28:06 +0000 |
commit | d21d2b264cd77c027a06f68289cf4c3f177d1ed0 (patch) | |
tree | 8af47d2c169f527e619efae3c9c979874e3a486e /src/test/net_tests.cpp | |
parent | 9bbf08bf98487eeb75f143c120cfd544ea3135fb (diff) | |
download | bitcoin-d21d2b264cd77c027a06f68289cf4c3f177d1ed0.tar.xz |
[net] Change AdvertiseLocal to GetLocalAddrForPeer
Gossiping addresses to peers is the responsibility of net processing.
Change AdvertiseLocal() in net to just return an (optional) address
for net processing to advertise. Update function name to reflect
new responsibility.
Diffstat (limited to 'src/test/net_tests.cpp')
-rw-r--r-- | src/test/net_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp index f52905e1ef..1c7c35528e 100644 --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -691,7 +691,7 @@ BOOST_AUTO_TEST_CASE(ipv4_peer_with_ipv6_addrMe_test) pnode->SetAddrLocal(addrLocal); // before patch, this causes undefined behavior detectable with clang's -fsanitize=memory - AdvertiseLocal(&*pnode); + GetLocalAddrForPeer(&*pnode); // suppress no-checks-run warning; if this test fails, it's by triggering a sanitizer BOOST_CHECK(1); |