Bitcoin Core
27.99.0
P2P Digital Currency
|
Access to the banlist database (banlist.json) More...
#include <addrdb.h>
Public Member Functions | |
CBanDB (fs::path ban_list_path) | |
bool | Write (const banmap_t &banSet) |
bool | Read (banmap_t &banSet) |
Read the banlist from disk. More... | |
Private Attributes | |
const fs::path | m_banlist_dat |
const fs::path | m_banlist_json |
Static Private Attributes | |
static constexpr const char * | JSON_KEY = "banned_nets" |
JSON key under which the data is stored in the json database. More... | |
|
explicit |
Definition at line 133 of file addrdb.cpp.
bool CBanDB::Read | ( | banmap_t & | banSet | ) |
Read the banlist from disk.
[out] | banSet | The loaded list. Set if true is returned, otherwise it is left in an undefined state. |
Definition at line 152 of file addrdb.cpp.
bool CBanDB::Write | ( | const banmap_t & | banSet | ) |
Definition at line 139 of file addrdb.cpp.
|
staticconstexprprivate |