BanMan::Ban

Bans an address, rejecting all connections with it.

Synopsis

Declared in <banman.h>

[[requires_capability(0x7f2e3ae94688)]]
void
Ban(
    CNetAddr const& net_addr,
    int64_t ban_time_offset = 0,
    bool since_unix_epoch = false);

Parameters

NameDescription
net_addrThe address to ban.
ban_time_offsetBan duration offset in seconds; 0 uses the default.
since_unix_epochIf true, ban_time_offset is an absolute unix timestamp.