Changeset View
Changeset View
Standalone View
Standalone View
src/addrman_impl.h
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | public: | ||||
| //! in tried set? (memory only) | //! in tried set? (memory only) | ||||
| bool fInTried{false}; | bool fInTried{false}; | ||||
| //! position in vRandom | //! position in vRandom | ||||
| mutable int nRandomPos{-1}; | mutable int nRandomPos{-1}; | ||||
| SERIALIZE_METHODS(AddrInfo, obj) { | SERIALIZE_METHODS(AddrInfo, obj) { | ||||
| READWRITEAS(CAddress, obj); | READWRITE(AsBase<CAddress>(obj), obj.source, | ||||
| READWRITE(obj.source, | |||||
| Using<ChronoFormatter<int64_t>>(obj.m_last_success), | Using<ChronoFormatter<int64_t>>(obj.m_last_success), | ||||
| obj.nAttempts); | obj.nAttempts); | ||||
| } | } | ||||
| AddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) | AddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) | ||||
| : CAddress(addrIn), source(addrSource) {} | : CAddress(addrIn), source(addrSource) {} | ||||
| AddrInfo() : CAddress(), source() {} | AddrInfo() : CAddress(), source() {} | ||||
| ▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines | |||||