| 12 | static const char* BANMAN_JSON_VERSION_KEY{"version"}; |
| 13 | |
| 14 | CBanEntry::CBanEntry(const UniValue& json) |
| 15 | : nVersion(json[BANMAN_JSON_VERSION_KEY].get_int()), |
| 16 | nCreateTime(json["ban_created"].get_int64()), |
| 17 | nBanUntil(json["banned_until"].get_int64()) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | UniValue CBanEntry::ToJson() const |
| 22 | { |