#include <net_types.h>
Definition at line 14 of file net_types.h.
◆ CBanEntry() [1/3]
◆ CBanEntry() [2/3]
| CBanEntry::CBanEntry |
( |
int64_t | nCreateTimeIn | ) |
|
|
inlineexplicit |
◆ CBanEntry() [3/3]
| CBanEntry::CBanEntry |
( |
const UniValue & | json | ) |
|
|
explicit |
Create a ban entry from JSON.
- Parameters
-
| [in] | json | A JSON representation of a ban entry, as created by ToJson(). |
- Exceptions
-
| std::runtime_error | if the JSON does not have the expected fields. |
Definition at line 14 of file net_types.cpp.
◆ ToJson()
Generate a JSON representation of this ban entry.
- Returns
- JSON suitable for passing to the CBanEntry(const UniValue&) constructor.
Definition at line 21 of file net_types.cpp.
◆ CURRENT_VERSION
| int CBanEntry::CURRENT_VERSION {1} |
|
staticconstexpr |
◆ nBanUntil
| int64_t CBanEntry::nBanUntil {0} |
◆ nCreateTime
| int64_t CBanEntry::nCreateTime {0} |
◆ nVersion
The documentation for this class was generated from the following files: