Skip to content

Commit d2d66cf

Browse files
committed
fix: inverted flag usage of IsFullOutboundConn for bitcoin#19316, fixes dns probe connections
1 parent bd60f04 commit d2d66cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2680,7 +2680,7 @@ void CConnman::ThreadDNSAddressSeed()
26802680
{
26812681
READ_LOCK(m_nodes_mutex);
26822682
for (const CNode* pnode : m_nodes) {
2683-
if (pnode->fSuccessfullyConnected && !pnode->IsFullOutboundConn() && !pnode->m_masternode_probe_connection) ++nRelevant;
2683+
if (pnode->fSuccessfullyConnected && pnode->IsFullOutboundConn() && !pnode->m_masternode_probe_connection) ++nRelevant;
26842684
}
26852685
}
26862686
if (nRelevant >= 2) {

0 commit comments

Comments
 (0)