Access to the banlist databases (banlist.json and banlist.dat)
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 databases (banlist.json and banlist.dat)
Definition at line 74 of file addrdb.h.
◆ CBanDB()
◆ Read()
| bool CBanDB::Read |
( |
banmap_t & |
banSet, |
|
|
bool & |
dirty |
|
) |
| |
Read the banlist from disk.
- Parameters
-
| [out] | banSet | The loaded list. Set if true is returned, otherwise it is left in an undefined state. |
| [out] | dirty | Indicates whether the loaded list needs flushing to disk. Set if true is returned, otherwise it is left in an undefined state. |
- Returns
- true on success
Definition at line 216 of file addrdb.cpp.
◆ Write()
| bool CBanDB::Write |
( |
const banmap_t & |
banSet | ) |
|
◆ chainParams
◆ 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 79 of file addrdb.h.
◆ m_banlist_dat
◆ m_banlist_json
The documentation for this class was generated from the following files: