Create a ban entry from JSON.

Synopsis

Declared in <net_types.h>

explicit
CBanEntry(UniValue const& json);

Exceptions

Name

Thrown on

std::runtime_error

if the JSON does not have the expected fields.

Parameters

Name

Description

json [in]

A JSON representation of a ban entry, as created by ToJson().

Created with MrDocs