CBanEntry::CBanEntry

Constructors

Synopses

Declared in <net_types.h>

Construct an empty ban entry with default field values.

constexpr
CBanEntry() = default;
» more...

Construct a ban entry with the given creation time.

explicit
CBanEntry(int64_t nCreateTimeIn);
» more...

Create a ban entry from JSON.

explicit
CBanEntry(UniValue const& json);
» more...

Exceptions

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

Parameters

NameDescription
nCreateTimeInUnix epoch time (seconds) when the ban was created.
json [in]A JSON representation of a ban entry, as created by ToJson().