Constructors
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...
| Name | Thrown on |
|---|---|
std::runtime_error | if the JSON does not have the expected fields. |
| 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(). |