aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2021-05-21 13:03:00 +1000
committerAnthony Towns <aj@erisian.com.au>2021-05-21 13:03:00 +1000
commitfe3d17df04decc4e856121eb311636977d60f80f (patch)
tree14b2142fc706add3a24095b5fe12a1a1ce762525 /src
parentea8b2e8e127b5a27424c1c08a1352ec1c9382c96 (diff)
net: ignore block-relay-only peers when skipping DNS seed
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 909b7622e3..7fde59ba20 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -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) {