mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Move IsPeerAddrLocalGood() declaration from header to implementation
This commit is contained in:
parent
4a1aae6749
commit
deccf1c484
2 changed files with 1 additions and 2 deletions
|
@ -223,7 +223,7 @@ static int GetnScore(const CService& addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is our peer's addrLocal potentially useful as an external IP source?
|
// Is our peer's addrLocal potentially useful as an external IP source?
|
||||||
bool IsPeerAddrLocalGood(CNode *pnode)
|
[[nodiscard]] static bool IsPeerAddrLocalGood(CNode *pnode)
|
||||||
{
|
{
|
||||||
CService addrLocal = pnode->GetAddrLocal();
|
CService addrLocal = pnode->GetAddrLocal();
|
||||||
return fDiscover && pnode->addr.IsRoutable() && addrLocal.IsRoutable() &&
|
return fDiscover && pnode->addr.IsRoutable() && addrLocal.IsRoutable() &&
|
||||||
|
|
|
@ -145,7 +145,6 @@ enum
|
||||||
LOCAL_MAX
|
LOCAL_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
bool IsPeerAddrLocalGood(CNode *pnode);
|
|
||||||
/** Returns a local address that we should advertise to this peer. */
|
/** Returns a local address that we should advertise to this peer. */
|
||||||
std::optional<CService> GetLocalAddrForPeer(CNode& node);
|
std::optional<CService> GetLocalAddrForPeer(CNode& node);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue