aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-06-12 18:31:47 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-06-17 21:40:55 +0200
commit4e36e9bcc7d071bba4c45fd89c0cfd2e2361ffe3 (patch)
tree2703eacb4f5dd62e6d6bb95193412cbcbf0e8ad5 /src/net.h
parent3de24d7647db2b9167cee25549c3c603582e19e6 (diff)
setban: rewrite to UniValue, allow absolute bantime
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index d800aa22c6..69e4c592a9 100644
--- a/src/net.h
+++ b/src/net.h
@@ -608,8 +608,8 @@ public:
static void ClearBanned(); // needed for unit testing
static bool IsBanned(CNetAddr ip);
static bool IsBanned(CSubNet subnet);
- static void Ban(const CNetAddr &ip, int64_t bantimeoffset = 0);
- static void Ban(const CSubNet &subNet, int64_t bantimeoffset = 0);
+ static void Ban(const CNetAddr &ip, int64_t bantimeoffset = 0, bool sinceUnixEpoch = false);
+ static void Ban(const CSubNet &subNet, int64_t bantimeoffset = 0, bool sinceUnixEpoch = false);
static bool Unban(const CNetAddr &ip);
static bool Unban(const CSubNet &ip);
static void GetBanned(std::map<CSubNet, int64_t> &banmap);