Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,634 Lines • ▼ Show 20 Lines | fUpdateConnectionTime = false; | ||||
!node.IsBlockOnlyConn() && !node.IsInboundConn()) { | !node.IsBlockOnlyConn() && !node.IsInboundConn()) { | ||||
// Only change visible addrman state for outbound, full-relay peers | // Only change visible addrman state for outbound, full-relay peers | ||||
fUpdateConnectionTime = true; | fUpdateConnectionTime = true; | ||||
} | } | ||||
for (const QueuedBlock &entry : state->vBlocksInFlight) { | for (const QueuedBlock &entry : state->vBlocksInFlight) { | ||||
mapBlocksInFlight.erase(entry.hash); | mapBlocksInFlight.erase(entry.hash); | ||||
} | } | ||||
EraseOrphansFor(nodeid); | WITH_LOCK(g_cs_orphans, EraseOrphansFor(nodeid)); | ||||
m_txrequest.DisconnectedPeer(nodeid); | m_txrequest.DisconnectedPeer(nodeid); | ||||
nPreferredDownload -= state->fPreferredDownload; | nPreferredDownload -= state->fPreferredDownload; | ||||
nPeersWithValidatedDownloads -= | nPeersWithValidatedDownloads -= | ||||
(state->nBlocksInFlightValidHeaders != 0); | (state->nBlocksInFlightValidHeaders != 0); | ||||
assert(nPeersWithValidatedDownloads >= 0); | assert(nPeersWithValidatedDownloads >= 0); | ||||
m_outbound_peers_with_protect_from_disconnect -= | m_outbound_peers_with_protect_from_disconnect -= | ||||
state->m_chain_sync.m_protect; | state->m_chain_sync.m_protect; | ||||
assert(m_outbound_peers_with_protect_from_disconnect >= 0); | assert(m_outbound_peers_with_protect_from_disconnect >= 0); | ||||
▲ Show 20 Lines • Show All 5,261 Lines • Show Last 20 Lines |