BanMan::BanMan

Constructs the ban manager and loads any existing banlist from disk.

Synopsis

Declared in <banman.h>

BanMan(
    fs::path ban_file,
    CClientUIInterface* client_interface,
    int64_t default_ban_time);

Parameters

NameDescription
ban_filePath to the banlist file on disk.
client_interfaceUI interface notified when the banlist changes, or nullptr.
default_ban_timeDefault ban duration in seconds.