|
|
@ -1601,7 +1601,7 @@ void CConnman::ThreadDNSAddressSeed() |
|
|
|
LOCK(cs_vNodes); |
|
|
|
LOCK(cs_vNodes); |
|
|
|
int nRelevant = 0; |
|
|
|
int nRelevant = 0; |
|
|
|
for (auto pnode : vNodes) { |
|
|
|
for (auto pnode : vNodes) { |
|
|
|
nRelevant += pnode->fSuccessfullyConnected && HasAllDesirableServiceFlags(pnode->nServices); |
|
|
|
nRelevant += pnode->fSuccessfullyConnected && !pnode->fFeeler && !pnode->fOneShot && !pnode->m_manual_connection && !pnode->fInbound; |
|
|
|
} |
|
|
|
} |
|
|
|
if (nRelevant >= 2) { |
|
|
|
if (nRelevant >= 2) { |
|
|
|
LogPrintf("P2P peers available. Skipped DNS seeding.\n"); |
|
|
|
LogPrintf("P2P peers available. Skipped DNS seeding.\n"); |
|
|
|