mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
net: ignore block-relay-only peers when skipping DNS seed
This commit is contained in:
parent
ea8b2e8e12
commit
fe3d17df04
1 changed files with 1 additions and 1 deletions
|
|
@ -1637,7 +1637,7 @@ void CConnman::ThreadDNSAddressSeed()
|
||||||
{
|
{
|
||||||
LOCK(cs_vNodes);
|
LOCK(cs_vNodes);
|
||||||
for (const CNode* pnode : vNodes) {
|
for (const CNode* pnode : vNodes) {
|
||||||
if (pnode->fSuccessfullyConnected && pnode->IsOutboundOrBlockRelayConn()) ++nRelevant;
|
if (pnode->fSuccessfullyConnected && pnode->IsFullOutboundConn()) ++nRelevant;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nRelevant >= 2) {
|
if (nRelevant >= 2) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue