MCPcopy Create free account
hub / github.com/LUX-Core/lux / DEV_GUARDED

Function DEV_GUARDED

src/cpp-ethereum/libp2p/NodeTable.cpp:314–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313 unsigned evicts = 0;
314 DEV_GUARDED(x_evictions)
315 {
316 m_evictions.push_back(EvictionTimeout(make_pair(_leastSeen->id,chrono::steady_clock::now()), _new->id));
317 evicts = m_evictions.size();
318 }
319
320 if (evicts == 1)
321 doCheckEvictions();

Callers 6

addNodeMethod · 0.70
nodesMethod · 0.70
snapshotMethod · 0.70
doDiscoverMethod · 0.70
pingMethod · 0.70
onReceivedMethod · 0.70

Calls 6

isAllowedMethod · 0.80
push_backMethod · 0.45
sizeMethod · 0.45
countMethod · 0.45
addressMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected