aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 938f2376f7..dd6fca3960 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);