net: ignore block-relay-only peers when skipping DNS seed

This commit is contained in:
Anthony Towns 2021-05-21 13:03:00 +10:00
parent ea8b2e8e12
commit fe3d17df04

View File

@ -1637,7 +1637,7 @@ void CConnman::ThreadDNSAddressSeed()
{
LOCK(cs_vNodes);
for (const CNode* pnode : vNodes) {
if (pnode->fSuccessfullyConnected && pnode->IsOutboundOrBlockRelayConn()) ++nRelevant;
if (pnode->fSuccessfullyConnected && pnode->IsFullOutboundConn()) ++nRelevant;
}
}
if (nRelevant >= 2) {