aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-10-06 17:27:56 -0400
committerMatt Corallo <git@bluematt.me>2017-10-13 13:29:25 -0400
commit15f5d3b17298be96c6c684c195c02ac249ffd392 (patch)
tree7b4cc495640f42050777c3b175ff9cb85752e40f /src/net.cpp
parent5ee88b4bdefecbf03b6883b2a6b56a44ec75167d (diff)
Switch DNSSeed-needed metric to any-automatic-nodes, not services
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 3e82969a15..258599747a 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -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");