Constructors

Synopses

Declared in <net_types.h>

Construct an empty ban entry with default field values.

constexpr
CBanEntry() = default;

Construct a ban entry with the given creation time.

explicit
CBanEntry(int64_t nCreateTimeIn);

Create a ban entry from JSON.

explicit
CBanEntry(UniValue const& json);

Exceptions

Name

Thrown on

std::runtime_error

if the JSON does not have the expected fields.

Parameters

Name

Description

nCreateTimeIn

Unix epoch time (seconds) when the ban was created.

json [in]

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

Created with MrDocs