Browse Source

Switch DNSSeed-needed metric to any-automatic-nodes, not services

0.16
Matt Corallo 7 years ago
parent
commit
15f5d3b172
  1. 2
      src/net.cpp

2
src/net.cpp

@ -1601,7 +1601,7 @@ void CConnman::ThreadDNSAddressSeed() @@ -1601,7 +1601,7 @@ void CConnman::ThreadDNSAddressSeed()
LOCK(cs_vNodes);
int nRelevant = 0;
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) {
LogPrintf("P2P peers available. Skipped DNS seeding.\n");

Loading…
Cancel
Save