@@ -269,14 +269,14 @@ void AddrManImpl::Unserialize(Stream& s_)
269269
270270 if (nNew > ADDRMAN_NEW_BUCKET_COUNT * ADDRMAN_BUCKET_SIZE || nNew < 0 ) {
271271 throw std::ios_base::failure (
272- strprintf (" Corrupt CAddrMan serialization: nNew=%d, should be in [0, %d]" ,
272+ strprintf (" Corrupt AddrMan serialization: nNew=%d, should be in [0, %d]" ,
273273 nNew,
274274 ADDRMAN_NEW_BUCKET_COUNT * ADDRMAN_BUCKET_SIZE));
275275 }
276276
277277 if (nTried > ADDRMAN_TRIED_BUCKET_COUNT * ADDRMAN_BUCKET_SIZE || nTried < 0 ) {
278278 throw std::ios_base::failure (
279- strprintf (" Corrupt CAddrMan serialization: nTried=%d, should be in [0, %d]" ,
279+ strprintf (" Corrupt AddrMan serialization: nTried=%d, should be in [0, %d]" ,
280280 nTried,
281281 ADDRMAN_TRIED_BUCKET_COUNT * ADDRMAN_BUCKET_SIZE));
282282 }
@@ -1110,83 +1110,83 @@ const std::vector<bool>& AddrManImpl::GetAsmap() const
11101110 return m_asmap;
11111111}
11121112
1113- CAddrMan::CAddrMan (std::vector<bool > asmap, bool deterministic, int32_t consistency_check_ratio)
1113+ AddrMan::AddrMan (std::vector<bool > asmap, bool deterministic, int32_t consistency_check_ratio)
11141114 : m_impl(std::make_unique<AddrManImpl>(std::move(asmap), deterministic, consistency_check_ratio)) {}
11151115
1116- CAddrMan ::~CAddrMan () = default ;
1116+ AddrMan ::~AddrMan () = default ;
11171117
11181118template <typename Stream>
1119- void CAddrMan ::Serialize (Stream& s_) const
1119+ void AddrMan ::Serialize (Stream& s_) const
11201120{
11211121 m_impl->Serialize <Stream>(s_);
11221122}
11231123
11241124template <typename Stream>
1125- void CAddrMan ::Unserialize (Stream& s_)
1125+ void AddrMan ::Unserialize (Stream& s_)
11261126{
11271127 m_impl->Unserialize <Stream>(s_);
11281128}
11291129
11301130// explicit instantiation
1131- template void CAddrMan ::Serialize (CHashWriter& s) const ;
1132- template void CAddrMan ::Serialize (CAutoFile& s) const ;
1133- template void CAddrMan ::Serialize (CDataStream& s) const ;
1134- template void CAddrMan ::Unserialize (CAutoFile& s);
1135- template void CAddrMan ::Unserialize (CHashVerifier<CAutoFile>& s);
1136- template void CAddrMan ::Unserialize (CDataStream& s);
1137- template void CAddrMan ::Unserialize (CHashVerifier<CDataStream>& s);
1138-
1139- size_t CAddrMan ::size () const
1131+ template void AddrMan ::Serialize (CHashWriter& s) const ;
1132+ template void AddrMan ::Serialize (CAutoFile& s) const ;
1133+ template void AddrMan ::Serialize (CDataStream& s) const ;
1134+ template void AddrMan ::Unserialize (CAutoFile& s);
1135+ template void AddrMan ::Unserialize (CHashVerifier<CAutoFile>& s);
1136+ template void AddrMan ::Unserialize (CDataStream& s);
1137+ template void AddrMan ::Unserialize (CHashVerifier<CDataStream>& s);
1138+
1139+ size_t AddrMan ::size () const
11401140{
11411141 return m_impl->size ();
11421142}
11431143
1144- bool CAddrMan ::Add (const std::vector<CAddress> &vAddr, const CNetAddr& source, int64_t nTimePenalty)
1144+ bool AddrMan ::Add (const std::vector<CAddress> &vAddr, const CNetAddr& source, int64_t nTimePenalty)
11451145{
11461146 return m_impl->Add (vAddr, source, nTimePenalty);
11471147}
11481148
1149- void CAddrMan ::Good (const CService &addr, int64_t nTime)
1149+ void AddrMan ::Good (const CService &addr, int64_t nTime)
11501150{
11511151 m_impl->Good (addr, nTime);
11521152}
11531153
1154- void CAddrMan ::Attempt (const CService &addr, bool fCountFailure , int64_t nTime)
1154+ void AddrMan ::Attempt (const CService &addr, bool fCountFailure , int64_t nTime)
11551155{
11561156 m_impl->Attempt (addr, fCountFailure , nTime);
11571157}
11581158
1159- void CAddrMan ::ResolveCollisions ()
1159+ void AddrMan ::ResolveCollisions ()
11601160{
11611161 m_impl->ResolveCollisions ();
11621162}
11631163
1164- std::pair<CAddress, int64_t > CAddrMan ::SelectTriedCollision ()
1164+ std::pair<CAddress, int64_t > AddrMan ::SelectTriedCollision ()
11651165{
11661166 return m_impl->SelectTriedCollision ();
11671167}
11681168
1169- std::pair<CAddress, int64_t > CAddrMan ::Select (bool newOnly) const
1169+ std::pair<CAddress, int64_t > AddrMan ::Select (bool newOnly) const
11701170{
11711171 return m_impl->Select (newOnly);
11721172}
11731173
1174- std::vector<CAddress> CAddrMan ::GetAddr (size_t max_addresses, size_t max_pct, std::optional<Network> network) const
1174+ std::vector<CAddress> AddrMan ::GetAddr (size_t max_addresses, size_t max_pct, std::optional<Network> network) const
11751175{
11761176 return m_impl->GetAddr (max_addresses, max_pct, network);
11771177}
11781178
1179- void CAddrMan ::Connected (const CService &addr, int64_t nTime)
1179+ void AddrMan ::Connected (const CService &addr, int64_t nTime)
11801180{
11811181 m_impl->Connected (addr, nTime);
11821182}
11831183
1184- void CAddrMan ::SetServices (const CService &addr, ServiceFlags nServices)
1184+ void AddrMan ::SetServices (const CService &addr, ServiceFlags nServices)
11851185{
11861186 m_impl->SetServices (addr, nServices);
11871187}
11881188
1189- const std::vector<bool >& CAddrMan ::GetAsmap () const
1189+ const std::vector<bool >& AddrMan ::GetAsmap () const
11901190{
11911191 return m_impl->GetAsmap ();
11921192}
0 commit comments