diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2023-04-11 15:09:31 -0400 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2023-06-05 11:02:47 -0400 |
commit | 62d73f5370415f910c95a67b3d9f97bc85487bbe (patch) | |
tree | 202411f1e28f3b2da8f9f7a90092ba9e6ef22d92 /src/net.h | |
parent | f4a8269dfc144cc918570bdb870aa5143a11c1fe (diff) |
net, refactor: pass CNode instead of CNetAddr to GetLocalAddress
Access to CNode will be needed in the following commits.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -164,8 +164,8 @@ bool AddLocal(const CNetAddr& addr, int nScore = LOCAL_NONE); void RemoveLocal(const CService& addr); bool SeenLocal(const CService& addr); bool IsLocal(const CService& addr); -bool GetLocal(CService &addr, const CNetAddr *paddrPeer = nullptr); -CService GetLocalAddress(const CNetAddr& addrPeer); +bool GetLocal(CService& addr, const CNode& peer); +CService GetLocalAddress(const CNode& peer); CService MaybeFlipIPv6toCJDNS(const CService& service); |