diff options
author | dergoegge <n.goeggi@gmail.com> | 2022-07-04 18:02:28 +0200 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2022-07-14 15:24:00 +0200 |
commit | 5961f8eea1ad5be1a4bf8da63651e197a20359b2 (patch) | |
tree | 3d822083a7eacadb241e87ad5625f946852c76eb /src/net.h | |
parent | d9079fe18dc5d81ce290876353555b51125127d1 (diff) | |
download | bitcoin-5961f8eea1ad5be1a4bf8da63651e197a20359b2.tar.xz |
[net] Return CService from GetLocalAddrForPeer and GetLocalAddress
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |