![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <banman.h>
Private Member Functions | |
| void | LoadBanlist () EXCLUSIVE_LOCKS_REQUIRED(!m_banned_mutex) |
| void | SweepBanned () EXCLUSIVE_LOCKS_REQUIRED(m_banned_mutex) |
| clean unused entries (if bantime has expired) | |
| banmap_t m_banned | GUARDED_BY (m_banned_mutex) |
| bool m_is_dirty | GUARDED_BY (m_banned_mutex) |
| CRollingBloomFilter m_discouraged | GUARDED_BY (m_banned_mutex) |
Private Attributes | |
| Mutex | m_banned_mutex |
| CClientUIInterface * | m_client_interface = nullptr |
| CBanDB | m_ban_db |
| const int64_t | m_default_ban_time |
| BanMan::~BanMan | ( | ) |
| BanMan::BanMan | ( | fs::path | ban_file, |
| CClientUIInterface * | client_interface, | ||
| int64_t | default_ban_time ) |
| void BanMan::Ban | ( | const CNetAddr & | net_addr, |
| int64_t | ban_time_offset = 0, | ||
| bool | since_unix_epoch = false ) |
Definition at line 118 of file banman.cpp.
| void BanMan::Ban | ( | const CSubNet & | sub_net, |
| int64_t | ban_time_offset = 0, | ||
| bool | since_unix_epoch = false ) |
| void BanMan::ClearBanned | ( | ) |
Definition at line 72 of file banman.cpp.
| void BanMan::Discourage | ( | const CNetAddr & | net_addr | ) |
Definition at line 124 of file banman.cpp.
| void BanMan::DumpBanlist | ( | ) |
Definition at line 48 of file banman.cpp.
| void BanMan::GetBanned | ( | banmap_t & | banmap | ) |
Definition at line 174 of file banman.cpp.
|
inlineprivate |
|
inlineprivate |
|
private |
| bool BanMan::IsBanned | ( | const CNetAddr & | net_addr | ) |
Return whether net_addr is banned.
Definition at line 89 of file banman.cpp.
| bool BanMan::IsBanned | ( | const CSubNet & | sub_net | ) |
Return whether sub_net is exactly banned.
Definition at line 104 of file banman.cpp.
| bool BanMan::IsDiscouraged | ( | const CNetAddr & | net_addr | ) |
Return whether net_addr is discouraged.
Definition at line 83 of file banman.cpp.
|
private |
Definition at line 29 of file banman.cpp.
|
private |
clean unused entries (if bantime has expired)
Definition at line 182 of file banman.cpp.
| bool BanMan::Unban | ( | const CNetAddr & | net_addr | ) |
Definition at line 156 of file banman.cpp.
| bool BanMan::Unban | ( | const CSubNet & | sub_net | ) |
|
private |