diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-05-19 10:07:23 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-17 21:40:55 +0200 |
commit | 2252fb91cd19832c8baa63a10aaf7ce32bb400f8 (patch) | |
tree | 07178f8e0798bd1ab34da6df00c672c68cbbcf03 /src/net.h | |
parent | 9849c663b10f4d90776d606aa3e36850c32d44e1 (diff) |
[net] extend core functionallity for ban/unban/listban
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -606,7 +606,10 @@ public: // new code. static void ClearBanned(); // needed for unit testing static bool IsBanned(CNetAddr ip); - static bool Ban(const CNetAddr &ip); + static bool Ban(const CNetAddr &ip, int64_t bantimeoffset = 0); + static bool Unban(const CNetAddr &ip); + static void GetBanned(std::map<CNetAddr, int64_t> &banmap); + void copyStats(CNodeStats &stats); static bool IsWhitelistedRange(const CNetAddr &ip); |