From d21d2b264cd77c027a06f68289cf4c3f177d1ed0 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Thu, 9 Jul 2020 07:42:11 +0100 Subject: [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. --- src/net.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index 682150d65a..67d1cf0e55 100644 --- a/src/net.h +++ b/src/net.h @@ -197,7 +197,8 @@ enum }; bool IsPeerAddrLocalGood(CNode *pnode); -void AdvertiseLocal(CNode *pnode); +/** Returns a local address that we should advertise to this peer */ +Optional GetLocalAddrForPeer(CNode *pnode); /** * Mark a network as reachable or unreachable (no automatic connects to it) -- cgit v1.2.3