Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 2,431 Lines • ▼ Show 20 Lines | while (!interruptNet) { | ||||
continue; | continue; | ||||
} | } | ||||
addrman.ResolveCollisions(); | addrman.ResolveCollisions(); | ||||
int64_t nANow = GetAdjustedTime(); | int64_t nANow = GetAdjustedTime(); | ||||
int nTries = 0; | int nTries = 0; | ||||
const bool fBypassNetGroupLimit = | const bool fBypassNetGroupLimit = | ||||
gArgs.GetBoolArg("-bypassnetgrouplimit", false); | gArgs.GetBoolArg("-bypassnetgrouplimit", | ||||
conn_type == ConnectionType::AVALANCHE_OUTBOUND); | |||||
while (!interruptNet) { | while (!interruptNet) { | ||||
if (anchor && !m_anchors.empty()) { | if (anchor && !m_anchors.empty()) { | ||||
const CAddress addr = m_anchors.back(); | const CAddress addr = m_anchors.back(); | ||||
m_anchors.pop_back(); | m_anchors.pop_back(); | ||||
if (!addr.IsValid() || IsLocal(addr) || !IsReachable(addr) || | if (!addr.IsValid() || IsLocal(addr) || !IsReachable(addr) || | ||||
!HasAllDesirableServiceFlags(addr.nServices) || | !HasAllDesirableServiceFlags(addr.nServices) || | ||||
setConnected.count(addr.GetGroup(addrman.m_asmap))) { | setConnected.count(addr.GetGroup(addrman.m_asmap))) { | ||||
continue; | continue; | ||||
▲ Show 20 Lines • Show All 1,333 Lines • Show Last 20 Lines |