mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
[net] extend core functionallity for ban/unban/listban
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user