CBanEntry::CBanEntry

Create a ban entry from JSON.

Synopsis

Declared in <net_types.h>

explicit
CBanEntry(UniValue const& json);

Exceptions

NameThrown on
std::runtime_errorif the JSON does not have the expected fields.

Parameters

NameDescription
json [in]A JSON representation of a ban entry, as created by ToJson().