diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-12 18:31:47 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-17 21:40:55 +0200 |
commit | 4e36e9bcc7d071bba4c45fd89c0cfd2e2361ffe3 (patch) | |
tree | 2703eacb4f5dd62e6d6bb95193412cbcbf0e8ad5 /src/net.h | |
parent | 3de24d7647db2b9167cee25549c3c603582e19e6 (diff) |
setban: rewrite to UniValue, allow absolute bantime
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |