MCPcopy Create free account
hub / github.com/ElementsProject/elements / CBanEntry

Method CBanEntry

src/net_types.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static const char* BANMAN_JSON_VERSION_KEY{"version"};
13
14CBanEntry::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
21UniValue CBanEntry::ToJson() const
22{

Callers

nothing calls this directly

Calls 2

get_intMethod · 0.80
get_int64Method · 0.80

Tested by

no test coverage detected