Changeset View
Changeset View
Standalone View
Standalone View
src/addrman.h
Show First 20 Lines • Show All 483 Lines • ▼ Show 20 Lines | template <typename Stream> void Unserialize(Stream &s) { | ||||
std::map<int, CAddrInfo>::const_iterator itCopy = it++; | std::map<int, CAddrInfo>::const_iterator itCopy = it++; | ||||
Delete(itCopy->first); | Delete(itCopy->first); | ||||
nLostUnk++; | nLostUnk++; | ||||
} else { | } else { | ||||
it++; | it++; | ||||
} | } | ||||
} | } | ||||
if (nLost + nLostUnk > 0) { | if (nLost + nLostUnk > 0) { | ||||
LogPrint(BCLog::ADDRMAN, "addrman lost %i new and %i tried " | LogPrint(BCLog::ADDRMAN, | ||||
"addresses due to collisions\n", | "addrman lost %i new and %i tried addresses due to " | ||||
"collisions\n", | |||||
nLostUnk, nLost); | nLostUnk, nLost); | ||||
} | } | ||||
Check(); | Check(); | ||||
} | } | ||||
void Clear() { | void Clear() { | ||||
std::vector<int>().swap(vRandom); | std::vector<int>().swap(vRandom); | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |