Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 2,002 Lines • ▼ Show 20 Lines | while (!interruptNet) { | ||||
// limited outbound slots on a single netgroup but inbound | // limited outbound slots on a single netgroup but inbound | ||||
// and addnode peers do not use our outbound slots. Inbound | // and addnode peers do not use our outbound slots. Inbound | ||||
// peers also have the added issue that they're attacker | // peers also have the added issue that they're attacker | ||||
// controlled and could be used to prevent us from | // controlled and could be used to prevent us from | ||||
// connecting to particular hosts if we used them here. | // connecting to particular hosts if we used them here. | ||||
setConnected.insert(pnode->addr.GetGroup(addrman.m_asmap)); | setConnected.insert(pnode->addr.GetGroup(addrman.m_asmap)); | ||||
if (pnode->m_tx_relay == nullptr) { | if (pnode->m_tx_relay == nullptr) { | ||||
nOutboundBlockRelay++; | nOutboundBlockRelay++; | ||||
} else if (!pnode->IsFeelerConn()) { | } else if (pnode->m_conn_type == ConnectionType::OUTBOUND) { | ||||
nOutboundFullRelay++; | nOutboundFullRelay++; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// Feeler Connections | // Feeler Connections | ||||
// | // | ||||
▲ Show 20 Lines • Show All 1,143 Lines • Show Last 20 Lines |