Changeset View
Changeset View
Standalone View
Standalone View
src/banman.h
Show All 39 Lines | public: | ||||
~BanMan(); | ~BanMan(); | ||||
BanMan(fs::path ban_file, const CChainParams &chainparams, | BanMan(fs::path ban_file, const CChainParams &chainparams, | ||||
CClientUIInterface *client_interface, int64_t default_ban_time); | CClientUIInterface *client_interface, int64_t default_ban_time); | ||||
void Ban(const CNetAddr &net_addr, const BanReason &ban_reason, | void Ban(const CNetAddr &net_addr, const BanReason &ban_reason, | ||||
int64_t ban_time_offset = 0, bool since_unix_epoch = false); | int64_t ban_time_offset = 0, bool since_unix_epoch = false); | ||||
void Ban(const CSubNet &sub_net, const BanReason &ban_reason, | void Ban(const CSubNet &sub_net, const BanReason &ban_reason, | ||||
int64_t ban_time_offset = 0, bool since_unix_epoch = false); | int64_t ban_time_offset = 0, bool since_unix_epoch = false); | ||||
void ClearBanned(); | void ClearBanned(); | ||||
int IsBannedLevel(CNetAddr net_addr); | |||||
bool IsBanned(CNetAddr net_addr); | bool IsBanned(CNetAddr net_addr); | ||||
bool IsBanned(CSubNet sub_net); | bool IsBanned(CSubNet sub_net); | ||||
bool Unban(const CNetAddr &net_addr); | bool Unban(const CNetAddr &net_addr); | ||||
bool Unban(const CSubNet &sub_net); | bool Unban(const CSubNet &sub_net); | ||||
void GetBanned(banmap_t &banmap); | void GetBanned(banmap_t &banmap); | ||||
void DumpBanlist(); | void DumpBanlist(); | ||||
private: | private: | ||||
Show All 18 Lines |