MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ProtectNoBanConnections

Function ProtectNoBanConnections

src/node/eviction.cpp:87–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void ProtectNoBanConnections(std::vector<NodeEvictionCandidate>& eviction_candidates)
88{
89 eviction_candidates.erase(std::remove_if(eviction_candidates.begin(), eviction_candidates.end(),
90 [](NodeEvictionCandidate const& n) {
91 return n.m_noban;
92 }),
93 eviction_candidates.end());
94}
95
96void ProtectOutboundConnections(std::vector<NodeEvictionCandidate>& eviction_candidates)
97{

Callers 1

SelectNodeToEvictFunction · 0.85

Calls 3

eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected