Access to the banlist database (banlist.json)
More...
#include <addrdb.h>
|
| static constexpr const char * | JSON_KEY = "banned_nets" |
| | JSON key under which the data is stored in the json database. More...
|
| |
Access to the banlist database (banlist.json)
Definition at line 27 of file addrdb.h.
◆ CBanDB()
| CBanDB::CBanDB |
( |
fs::path |
ban_list_path | ) |
|
|
explicit |
◆ Read()
Read the banlist from disk.
- Parameters
-
| [out] | banSet | The loaded list. Set if true is returned, otherwise it is left in an undefined state. |
- Returns
- true on success
Definition at line 143 of file addrdb.cpp.
◆ Write()
| bool CBanDB::Write |
( |
const banmap_t & |
banSet | ) |
|
◆ JSON_KEY
| constexpr const char* CBanDB::JSON_KEY = "banned_nets" |
|
staticconstexprprivate |
JSON key under which the data is stored in the json database.
Definition at line 33 of file addrdb.h.
◆ m_banlist_dat
◆ m_banlist_json
The documentation for this class was generated from the following files: