MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Delete

Method Delete

src/addrman.cpp:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void CAddrMan::Delete(int nId)
114{
115 assert(mapInfo.count(nId) != 0);
116 CAddrInfo& info = mapInfo[nId];
117 assert(!info.fInTried);
118 assert(info.nRefCount == 0);
119
120 SwapRandom(info.nRandomPos, vRandom.size() - 1);
121 vRandom.pop_back();
122 mapAddr.erase(info);
123 mapInfo.erase(nId);
124 nNew--;
125}
126
127void CAddrMan::ClearNew(int nUBucket, int nUBucketPos)
128{

Callers 1

EraseMethod · 0.45

Calls 4

countMethod · 0.45
sizeMethod · 0.45
pop_backMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected