aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2022-07-04 18:02:28 +0200
committerdergoegge <n.goeggi@gmail.com>2022-07-14 15:24:00 +0200
commit5961f8eea1ad5be1a4bf8da63651e197a20359b2 (patch)
tree3d822083a7eacadb241e87ad5625f946852c76eb /src/net.h
parentd9079fe18dc5d81ce290876353555b51125127d1 (diff)
downloadbitcoin-5961f8eea1ad5be1a4bf8da63651e197a20359b2.tar.xz
[net] Return CService from GetLocalAddrForPeer and GetLocalAddress
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net.h b/src/net.h
index b9f6990275..185fcd4c9a 100644
--- a/src/net.h
+++ b/src/net.h
@@ -144,8 +144,8 @@ enum
};
bool IsPeerAddrLocalGood(CNode *pnode);
-/** Returns a local address that we should advertise to this peer */
-std::optional<CAddress> GetLocalAddrForPeer(CNode *pnode);
+/** Returns a local address that we should advertise to this peer. */
+std::optional<CService> GetLocalAddrForPeer(CNode& node);
/**
* Mark a network as reachable or unreachable (no automatic connects to it)
@@ -163,7 +163,7 @@ void RemoveLocal(const CService& addr);
bool SeenLocal(const CService& addr);
bool IsLocal(const CService& addr);
bool GetLocal(CService &addr, const CNetAddr *paddrPeer = nullptr);
-CAddress GetLocalAddress(const CNetAddr *paddrPeer, ServiceFlags nLocalServices);
+CService GetLocalAddress(const CNetAddr& addrPeer);
extern bool fDiscover;