Function BanManager.banFor

Manually ban an address, for the specified number of seconds from the current time.

void banFor (
  Address address,
  core.time.Duration duration
) nothrow @safe;

Parameters

NameDescription
address the address to ban
duration How long to ban the address for