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

Method ToJson

src/net_types.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21UniValue CBanEntry::ToJson() const
22{
23 UniValue json(UniValue::VOBJ);
24 json.pushKV(BANMAN_JSON_VERSION_KEY, nVersion);
25 json.pushKV("ban_created", nCreateTime);
26 json.pushKV("banned_until", nBanUntil);
27 return json;
28}
29
30static const char* BANMAN_JSON_ADDR_KEY = "address";
31

Callers 1

BanMapToJsonFunction · 0.80

Calls 1

pushKVMethod · 0.45

Tested by

no test coverage detected