diff options
author | Carl Dong <accounts@carldong.me> | 2019-01-03 21:26:10 +0800 |
---|---|---|
committer | Carl Dong <accounts@carldong.me> | 2019-01-16 13:54:18 -0500 |
commit | c2e04d37f3841d109c1fe60693f9622e2836cc29 (patch) | |
tree | 3c47144e669133047f96c5df6b61acf997d6e178 /src/addrdb.h | |
parent | 1ffa4ce27d4ea6c1067d8984455df97994c7713e (diff) |
banman: Add, use CBanEntry ctor that takes ban reason
Diffstat (limited to 'src/addrdb.h')
-rw-r--r-- | src/addrdb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/addrdb.h b/src/addrdb.h index 88da31a6fc..290b63dd12 100644 --- a/src/addrdb.h +++ b/src/addrdb.h @@ -43,6 +43,11 @@ public: 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; template <typename Stream, typename Operation> |