Changeset View
Changeset View
Standalone View
Standalone View
src/addrdb.h
Show All 32 Lines | public: | ||||
CBanEntry() { SetNull(); } | CBanEntry() { SetNull(); } | ||||
explicit CBanEntry(int64_t nCreateTimeIn) { | explicit CBanEntry(int64_t nCreateTimeIn) { | ||||
SetNull(); | SetNull(); | ||||
nCreateTime = nCreateTimeIn; | nCreateTime = nCreateTimeIn; | ||||
} | } | ||||
explicit CBanEntry(int64_t n_create_time_in, BanReason ban_reason_in) | |||||
: CBanEntry(n_create_time_in) { | |||||
banReason = ban_reason_in; | |||||
} | |||||
ADD_SERIALIZE_METHODS; | ADD_SERIALIZE_METHODS; | ||||
template <typename Stream, typename Operation> | template <typename Stream, typename Operation> | ||||
inline void SerializationOp(Stream &s, Operation ser_action) { | inline void SerializationOp(Stream &s, Operation ser_action) { | ||||
READWRITE(this->nVersion); | READWRITE(this->nVersion); | ||||
READWRITE(nCreateTime); | READWRITE(nCreateTime); | ||||
READWRITE(nBanUntil); | READWRITE(nBanUntil); | ||||
READWRITE(banReason); | READWRITE(banReason); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |