![]() |
Bitcoin Core 31.0.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. | |
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. | |
|
explicit |
Definition at line 136 of file addrdb.cpp.
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 155 of file addrdb.cpp.
Definition at line 142 of file addrdb.cpp.