aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-10-05 13:41:45 -0400
committerCarl Dong <accounts@carldong.me>2019-01-16 13:54:18 -0500
commitd0469b2e9386a7a4b268cb9725347e7517acace6 (patch)
tree77e13e31bd2204de782afafe03c1e71203392c71 /src/net.h
parent2e56702ecedd83c4b7cb8de9de5c437c8c08e645 (diff)
banman: pass in default ban time as a parameter
Removes the dependency on arg parsing.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 5e6fc14b38..a6a536d68a 100644
--- a/src/net.h
+++ b/src/net.h
@@ -133,7 +133,7 @@ public:
// between nodes running old code and nodes running
// new code.
~BanMan();
- BanMan(fs::path ban_file, CClientUIInterface* client_interface);
+ BanMan(fs::path ban_file, CClientUIInterface* client_interface, int64_t default_ban_time);
void Ban(const CNetAddr& netAddr, const BanReason& reason, int64_t bantimeoffset = 0, bool sinceUnixEpoch = false);
void Ban(const CSubNet& subNet, const BanReason& reason, int64_t bantimeoffset = 0, bool sinceUnixEpoch = false);
void ClearBanned(); // needed for unit testing
@@ -157,6 +157,7 @@ private:
bool setBannedIsDirty;
CClientUIInterface* clientInterface = nullptr;
CBanDB m_ban_db;
+ int64_t m_default_ban_time;
};
class NetEventsInterface;