Changeset View
Changeset View
Standalone View
Standalone View
src/addrdb.h
Show All 27 Lines | public: | ||||
static const int CURRENT_VERSION = 1; | static const int CURRENT_VERSION = 1; | ||||
int nVersion; | int nVersion; | ||||
int64_t nCreateTime; | int64_t nCreateTime; | ||||
int64_t nBanUntil; | int64_t nBanUntil; | ||||
uint8_t banReason; | uint8_t banReason; | ||||
CBanEntry() { SetNull(); } | CBanEntry() { SetNull(); } | ||||
CBanEntry(int64_t nCreateTimeIn) { | explicit CBanEntry(int64_t nCreateTimeIn) { | ||||
SetNull(); | SetNull(); | ||||
nCreateTime = nCreateTimeIn; | nCreateTime = nCreateTimeIn; | ||||
} | } | ||||
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) { | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |