Skip to content

Commit

Permalink
Switch DNSSeed-needed metric to any-automatic-nodes, not services
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Oct 13, 2017
1 parent 5ee88b4 commit 15f5d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 15f5d3b

Please sign in to comment.