mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Switch DNSSeed-needed metric to any-automatic-nodes, not services
This commit is contained in:
parent
5ee88b4bde
commit
15f5d3b172
@ -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…
Reference in New Issue
Block a user