|
|
@ -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() &&
|
|
|
|